wined3d: Call ModifyLocation on "target" in IWineD3DDeviceImpl_ClearSurface().
This is the same pointer, but lastActiveRenderTarget will go away.
This commit is contained in:
parent
6c0c1671b2
commit
8402519c7a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue