diff --git a/src/osd/windows/d3d9intf.c b/src/osd/windows/d3d9intf.c index 18bd41074d8..6d22435e21d 100644 --- a/src/osd/windows/d3d9intf.c +++ b/src/osd/windows/d3d9intf.c @@ -422,7 +422,7 @@ static HRESULT d3d_device_set_texture_stage_state(d3d_device *dev, DWORD stage, IDirect3DDevice9 *device = (IDirect3DDevice9 *)dev; // some state which was here got pushed into sampler state in D3D9 - switch (state) + switch ((DWORD)state) { case D3DTSS_ADDRESSU: return IDirect3DDevice9_SetSamplerState(device, stage, D3DSAMP_ADDRESSU, value);