wined3d: Get rid of spurious err when locking with WINED3DLOCK_DISCARD.

This commit is contained in:
Alexander Dorofeyev 2008-03-09 16:08:57 +02:00 committed by Alexandre Julliard
parent 6c63ebefc3
commit 8f8076c3f7
1 changed files with 2 additions and 0 deletions

View File

@ -986,7 +986,9 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED
if (Flags & WINED3DLOCK_DISCARD) {
/* Set SFLAG_INSYSMEM, so we'll never try to download the data from the texture. */
TRACE("WINED3DLOCK_DISCARD flag passed, marking local copy as up to date\n");
surface_prepare_system_memory(This); /* Makes sure memory is allocated */
This->Flags |= SFLAG_INSYSMEM;
goto lock_end;
}
if (This->Flags & SFLAG_INSYSMEM) {