mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
wined3d: Preload target in ActivateContext() for ORM_BACKBUFFER/ORM_PBUFFER.
This commit is contained in:
parent
c0782603d0
commit
2d0016c5bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user