wined3d: Consolidate all existing enablings of SFLAG_INSYSMEM
in surface.c into one easy line
Stefan Dösinger
stefandoesinger at gmx.at
Fri Apr 13 04:35:30 CDT 2007
Am Freitag 13 April 2007 00:28 schrieb Phil Costin:
> This patch removes the need to manually set SFLAG_INSYSMEM after a call to
> surface_download_data. It should be set by the function.
- /* Mark the local copy up to date if a full download was done */
- if(This->lockedRect.left == 0 &&
- This->lockedRect.top == 0 &&
- This->lockedRect.right == This->currentDesc.Width &&
- This->lockedRect.bottom == This->currentDesc.Height) {
- This->Flags |= SFLAG_INSYSMEM;
- }
This is not correct. This path is for render target locking, and it does not
call surface_download_data, so you can't remove that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070413/2f8fed22/attachment-0002.pgp
More information about the wine-patches
mailing list