Commit 78d96303 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Do not PreLoad the new render target.

There is no reason to do that, now that the SetGLTextureDesc bug is fixed. This avoids an infinite recursion because PreLoad calls ActivateContext at some point.
parent 6ab3d171
......@@ -943,13 +943,6 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf
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, WINED3DTS_PROJECTION, StateTable);
Context_MarkStateDirty(context, STATE_VDECL, StateTable);
......
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