wined3d: Move render state applying to drawprim.

This commit is contained in:
Stefan Dösinger 2006-12-15 19:17:53 +01:00 committed by Alexandre Julliard
parent 7532c759f1
commit c83562af69
1 changed files with 1 additions and 4 deletions

View File

@ -3328,10 +3328,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
return WINED3D_OK; return WINED3D_OK;
} }
ENTER_GL(); IWineD3DDeviceImpl_MarkStateDirty(This, STATE_RENDER(State));
/* TODO: Mark the state dirty instead of immediate applying */
StateTable[STATE_RENDER(State)].apply(STATE_RENDER(State), This->stateBlock);
LEAVE_GL();
return WINED3D_OK; return WINED3D_OK;
} }