[PATCH 3/6] wined3d: Call ModifyLocation on "target" in IWineD3DDeviceImpl_ClearSurface().

Henri Verbeet hverbeet at codeweavers.com
Tue Jul 21 04:51:09 CDT 2009


This is the same pointer, but lastActiveRenderTarget will go away.
---
 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index ddc4c70..00c0a78 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5065,7 +5065,7 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This,  IWineD3DSurfa
         /* Dirtify the target surface for now. If the surface is locked regularly, and an up to date sysmem copy exists,
          * it is most likely more efficient to perform a clear on the sysmem copy too instead of downloading it
          */
-        IWineD3DSurface_ModifyLocation(This->lastActiveRenderTarget, SFLAG_INDRAWABLE, TRUE);
+        IWineD3DSurface_ModifyLocation((IWineD3DSurface *)target, SFLAG_INDRAWABLE, TRUE);
     }
     if (Flags & WINED3DCLEAR_ZBUFFER) {
         /* Note that WINED3DCLEAR_ZBUFFER implies a depth stencil exists on the device */
-- 
1.6.0.6




More information about the wine-patches mailing list