From c83562af697e735fe6d8e96aa8c033759a124cd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20D=C3=B6singer?= Date: Fri, 15 Dec 2006 19:17:53 +0100 Subject: [PATCH] wined3d: Move render state applying to drawprim. --- dlls/wined3d/device.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 217f666af09..5a4a27070df 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -3328,10 +3328,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W return WINED3D_OK; } - ENTER_GL(); - /* TODO: Mark the state dirty instead of immediate applying */ - StateTable[STATE_RENDER(State)].apply(STATE_RENDER(State), This->stateBlock); - LEAVE_GL(); + IWineD3DDeviceImpl_MarkStateDirty(This, STATE_RENDER(State)); return WINED3D_OK; } -- 2.11.4.GIT