[2] WineD3D: Move render state applying to drawprim
Stefan Dösinger
stefan at codeweavers.com
Fri Dec 15 12:17:53 CST 2006
This patch marks the state dirty instead of applying it immediately in
SetRenderState.
-------------- next part --------------
From 02b657c32254cd0bd970a680760820a6abd89adb Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 15 Dec 2006 13:53:32 +0100
Subject: [PATCH] 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 af6876a..e75ae6a 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3347,10 +3347,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;
}
--
1.4.2.4
More information about the wine-patches
mailing list