Henri Verbeet : wined3d: Call ModifyLocation on "target" in IWineD3DDeviceImpl_ClearSurface().
Module: wine Branch: master Commit: 8402519c7a39f9a0984cf21b1f159e9b8b01f411 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8402519c7a39f9a0984cf21b1f... Author: Henri Verbeet <hverbeet(a)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 */
participants (1)
-
Alexandre Julliard