1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

Revert "[d3d9] Ignore D3DLOCK_DISCARD when partially locking buffers"

This reverts commit 50cf3a465b65ea40deeee8e80ecc8d5018cf70fb.
This commit is contained in:
Joshua Ashton 2020-02-18 16:50:39 +00:00
parent 378bdbdfb0
commit 6b85e6d3f1

View File

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