1
0
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:
Joshua Ashton 2020-06-05 23:46:33 +01:00
parent 124023bac5
commit 68ae3f4376

View File

@ -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);