From 6b85e6d3f1df66043422d6c921f87424a5c945ae Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 18 Feb 2020 16:50:39 +0000 Subject: [PATCH] Revert "[d3d9] Ignore D3DLOCK_DISCARD when partially locking buffers" This reverts commit 50cf3a465b65ea40deeee8e80ecc8d5018cf70fb. --- src/d3d9/d3d9_device.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index d85fa3de5..689ed4382 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -4175,10 +4175,6 @@ namespace dxvk { if (desc.Pool != D3DPOOL_DEFAULT) Flags &= ~(D3DLOCK_DISCARD | D3DLOCK_NOOVERWRITE); - // Ignore DISCARD if we are doing a partial lock. - if (OffsetToLock != 0 || (SizeToLock != 0 && SizeToLock != desc.Size)) - Flags &= ~D3DLOCK_DISCARD; - // Ignore READONLY if we are a WRITEONLY resource. if (desc.Usage & D3DUSAGE_WRITEONLY) Flags &= ~D3DLOCK_READONLY;