wined3d: Ensure all states affected by a change in render_offscreen are marked dirty in ActivateContext.

This commit is contained in:
Phil Costin 2007-03-20 19:45:50 +00:00 committed by Alexandre Julliard
parent 453cb25c1b
commit 1f03896e00
1 changed files with 6 additions and 0 deletions

View File

@ -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) {