d3d8: Add a float to DWORD cast.

This commit is contained in:
Stefan Dösinger 2011-05-12 21:59:06 +02:00 committed by Alexandre Julliard
parent 5c6c019340
commit e55b3bef0f
1 changed files with 1 additions and 1 deletions

View File

@ -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: