H. Verbeet : wined3d: FBO texture == drawable handling is already handled in LoadLocation().

Alexandre Julliard julliard at winehq.org
Wed Jul 30 08:35:58 CDT 2008


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

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Tue Jul 29 23:14:51 2008 +0200

wined3d: FBO texture == drawable handling is already handled in LoadLocation().

---

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

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index fb1f705..fddf365 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -922,7 +922,6 @@ void drawPrimitive(IWineD3DDevice *iface,
                    int   minIndex) {
 
     IWineD3DDeviceImpl           *This = (IWineD3DDeviceImpl *)iface;
-    IWineD3DSwapChain            *swapchain;
     IWineD3DSurfaceImpl          *target;
     int i;
 
@@ -934,27 +933,13 @@ void drawPrimitive(IWineD3DDevice *iface,
 
         /* TODO: Only do all that if we're going to change anything */
         if(target /*&& target->Flags & (SFLAG_INTEXTURE | SFLAG_INSYSMEM)*/) {
-            swapchain = NULL;
-
             if(i == 0) {
-                IWineD3DSurface_GetContainer((IWineD3DSurface *) target, &IID_IWineD3DSwapChain, (void **)&swapchain);
-
                 /* Need the surface in the drawable! */
                 IWineD3DSurface_LoadLocation((IWineD3DSurface *) target, SFLAG_INDRAWABLE, NULL);
-
-                /* TODO: Move fbo logic to ModifyLocation */
                 IWineD3DSurface_ModifyLocation((IWineD3DSurface *) target, SFLAG_INDRAWABLE, TRUE);
-                if(swapchain) {
-                    /* Onscreen target. Invalidate system memory copy and texture copy */
-                    IWineD3DSwapChain_Release(swapchain);
-                } else if(wined3d_settings.offscreen_rendering_mode == ORM_FBO) {
-                    /* FBO offscreen target. Texture == Drawable */
-                    target->Flags |= SFLAG_INTEXTURE;
-                }
             } else {
                 /* Must be an fbo render target */
                 IWineD3DSurface_ModifyLocation((IWineD3DSurface *) target, SFLAG_INDRAWABLE, TRUE);
-                target->Flags |=  SFLAG_INTEXTURE;
             }
         }
     }




More information about the wine-cvs mailing list