From 68ae3f4376b6d9878f9789846aa8f75c4410abd7 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 5 Jun 2020 23:46:33 +0100 Subject: [PATCH] [d3d9] Return D3D_OK when unlocking not locked textures Matches D3D9 behaviour --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index de21d1f7a..641ba2ebd 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -4137,7 +4137,7 @@ namespace dxvk { // We weren't locked anyway! if (unlikely(!pResource->GetLocked(Subresource))) - return D3DERR_INVALIDCALL; + return D3D_OK; pResource->SetLocked(Subresource, false);