d3d9: D3DLOCK_DISCARD is not valid on managed textures.
This commit is contained in:
parent
b060390c73
commit
297b88486e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue