Commit 2b0fd0cf authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d8: Use wined3d_stateblock_get_state() in d3d8_device_GetRenderState().

parent 9af3f8f6
......@@ -1875,18 +1875,20 @@ static HRESULT WINAPI d3d8_device_GetRenderState(IDirect3DDevice8 *iface,
D3DRENDERSTATETYPE state, DWORD *value)
{
struct d3d8_device *device = impl_from_IDirect3DDevice8(iface);
const struct wined3d_stateblock_state *device_state;
TRACE("iface %p, state %#x, value %p.\n", iface, state, value);
wined3d_mutex_lock();
device_state = wined3d_stateblock_get_state(device->state);
switch (state)
{
case D3DRS_ZBIAS:
*value = wined3d_device_get_render_state(device->wined3d_device, WINED3D_RS_DEPTHBIAS);
*value = device_state->rs[WINED3D_RS_DEPTHBIAS];
break;
default:
*value = wined3d_device_get_render_state(device->wined3d_device, state);
*value = device_state->rs[state];
}
wined3d_mutex_unlock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment