mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Return D3D_OK when unlocking not locked textures
Matches D3D9 behaviour
This commit is contained in:
parent
124023bac5
commit
68ae3f4376
@ -4137,7 +4137,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
// We weren't locked anyway!
|
// We weren't locked anyway!
|
||||||
if (unlikely(!pResource->GetLocked(Subresource)))
|
if (unlikely(!pResource->GetLocked(Subresource)))
|
||||||
return D3DERR_INVALIDCALL;
|
return D3D_OK;
|
||||||
|
|
||||||
pResource->SetLocked(Subresource, false);
|
pResource->SetLocked(Subresource, false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user