diff --git a/gfx/common/d3d_common.c b/gfx/common/d3d_common.c index 73c2e8e558..f135ee721d 100644 --- a/gfx/common/d3d_common.c +++ b/gfx/common/d3d_common.c @@ -1116,7 +1116,7 @@ bool d3d_create_pixel_shader(LPDIRECT3DDEVICE dev, const DWORD *a, void **b) bool d3d_set_pixel_shader(LPDIRECT3DDEVICE dev, void *data) { #ifdef HAVE_D3D9 - D3DPixelShader *d3dps = (D3DPixelShader*)data; + LPDIRECT3DPIXELSHADER d3dps = (LPDIRECT3DPIXELSHADER)data; if (!dev || !d3dps) return false; #if defined(__cplusplus)