Henri Verbeet : wined3d: Call ModifyLocation on "target" in IWineD3DDeviceImpl_ClearSurface().
Alexandre Julliard
julliard at winehq.org
Tue Jul 21 09:34:39 CDT 2009
Module: wine
Branch: master
Commit: 8402519c7a39f9a0984cf21b1f159e9b8b01f411
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8402519c7a39f9a0984cf21b1f159e9b8b01f411
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Jul 21 11:51:09 2009 +0200
wined3d: Call ModifyLocation on "target" in IWineD3DDeviceImpl_ClearSurface().
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 */
More information about the wine-cvs
mailing list