wined3d: Ensure all states affected by a change in render_offscreen are marked dirty in ActivateContext.
This commit is contained in:
parent
453cb25c1b
commit
1f03896e00
|
@ -638,6 +638,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
|
||||||
|
|
||||||
if(oldRenderOffscreen) {
|
if(oldRenderOffscreen) {
|
||||||
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
|
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
|
||||||
|
Context_MarkStateDirty(context, WINED3DTS_PROJECTION);
|
||||||
|
Context_MarkStateDirty(context, STATE_VDECL);
|
||||||
|
Context_MarkStateDirty(context, STATE_VIEWPORT);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
TRACE("Rendering offscreen\n");
|
TRACE("Rendering offscreen\n");
|
||||||
|
@ -703,6 +706,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
|
||||||
|
|
||||||
if(!oldRenderOffscreen) {
|
if(!oldRenderOffscreen) {
|
||||||
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
|
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
|
||||||
|
Context_MarkStateDirty(context, WINED3DTS_PROJECTION);
|
||||||
|
Context_MarkStateDirty(context, STATE_VDECL);
|
||||||
|
Context_MarkStateDirty(context, STATE_VIEWPORT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (readTexture) {
|
if (readTexture) {
|
||||||
|
|
Loading…
Reference in New Issue