d3d8: Add a float to DWORD cast.
This commit is contained in:
parent
5c6c019340
commit
e55b3bef0f
|
@ -1521,7 +1521,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetRenderState(IDirect3DDevice8 *ifac
|
|||
{
|
||||
case D3DRS_ZBIAS:
|
||||
hr = wined3d_device_get_render_state(This->wined3d_device, WINED3DRS_DEPTHBIAS, &wined3d_value.d);
|
||||
if (SUCCEEDED(hr)) *pValue = wined3d_value.f / zbias_factor;
|
||||
if (SUCCEEDED(hr)) *pValue = (DWORD)(wined3d_value.f / zbias_factor);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue