d3d9: D3DLOCK_DISCARD is not valid on managed textures.

This commit is contained in:
Stefan Dösinger 2007-12-08 16:32:07 +01:00 committed by Alexandre Julliard
parent b060390c73
commit 297b88486e
1 changed files with 1 additions and 1 deletions

View File

@ -1733,7 +1733,7 @@ static void fill_surface(IDirect3DSurface9 *surface, DWORD color)
memset(&l, 0, sizeof(l));
hr = IDirect3DSurface9_GetDesc(surface, &desc);
ok(hr == D3D_OK, "IDirect3DSurface9_GetDesc failed with %s\n", DXGetErrorString9(hr));
hr = IDirect3DSurface9_LockRect(surface, &l, NULL, D3DLOCK_DISCARD);
hr = IDirect3DSurface9_LockRect(surface, &l, NULL, 0);
ok(hr == D3D_OK, "IDirect3DSurface9_LockRect failed with %s\n", DXGetErrorString9(hr));
if(FAILED(hr)) return;