Phil Costin : wined3d:
Ensure all states affected by a change in render_offscreen are marked
dirty in ActivateContext .
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 21 08:17:07 CDT 2007
Module: wine
Branch: master
Commit: 1f03896e0002708ec6092c6c2faf584f47a55fcd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1f03896e0002708ec6092c6c2faf584f47a55fcd
Author: Phil Costin <philcostin at hotmail.com>
Date: Tue Mar 20 19:45:50 2007 +0000
wined3d: Ensure all states affected by a change in render_offscreen are marked dirty in ActivateContext.
---
dlls/wined3d/context.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 0849b3d..b89207e 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -638,6 +638,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
if(oldRenderOffscreen) {
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
+ Context_MarkStateDirty(context, WINED3DTS_PROJECTION);
+ Context_MarkStateDirty(context, STATE_VDECL);
+ Context_MarkStateDirty(context, STATE_VIEWPORT);
}
} else {
TRACE("Rendering offscreen\n");
@@ -703,6 +706,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
if(!oldRenderOffscreen) {
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
+ Context_MarkStateDirty(context, WINED3DTS_PROJECTION);
+ Context_MarkStateDirty(context, STATE_VDECL);
+ Context_MarkStateDirty(context, STATE_VIEWPORT);
}
}
if (readTexture) {
More information about the wine-cvs
mailing list