Stefan Dösinger : wined3d: Move render state applying to drawprim.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 19 10:05:00 CST 2006


Module: wine
Branch: master
Commit: c83562af697e735fe6d8e96aa8c033759a124cd2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c83562af697e735fe6d8e96aa8c033759a124cd2

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Dec 15 19:17:53 2006 +0100

wined3d: Move render state applying to drawprim.

---

 dlls/wined3d/device.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 217f666..5a4a270 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3328,10 +3328,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
         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;
 }




More information about the wine-cvs mailing list