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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 9 07:35:57 CDT 2007


Module: wine
Branch: master
Commit: 2d0016c5bc872afb562727278cfd341cea182600
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d0016c5bc872afb562727278cfd341cea182600

Author: Felix Nawothnig <flexo at holycrap.org>
Date:   Sun Apr  8 02:46:40 2007 +0200

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

---

 dlls/wined3d/context.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index d21f5b8..d3424fd 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -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);




More information about the wine-cvs mailing list