Commit 2d0016c5 authored by Felix Nawothnig's avatar Felix Nawothnig Committed by Alexandre Julliard

wined3d: Preload target in ActivateContext() for ORM_BACKBUFFER/ORM_PBUFFER.

parent c0782603
......@@ -712,6 +712,13 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
break;
}
if (wined3d_settings.offscreen_rendering_mode != ORM_FBO) {
/* Make sure we have a OpenGL texture name so the PreLoad() used to read the buffer
* back when we are done won't mark us dirty.
*/
IWineD3DSurface_PreLoad(target);
}
if(!oldRenderOffscreen) {
Context_MarkStateDirty(context, WINED3DRS_CULLMODE);
Context_MarkStateDirty(context, WINED3DTS_PROJECTION);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment