mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Make ChangeReportedMemory actually atomic
Massive edge case that will never happen, but better to be safe than sorry. Reduces the atomic ops too.
This commit is contained in:
parent
fae99907da
commit
90ce37c8c9
@ -851,9 +851,9 @@ namespace dxvk {
|
||||
if (IsExtended())
|
||||
return true;
|
||||
|
||||
m_availableMemory += delta;
|
||||
int64_t availableMemory = m_availableMemory.fetch_add(delta);
|
||||
|
||||
return !m_d3d9Options.memoryTrackTest || m_availableMemory > 0;
|
||||
return !m_d3d9Options.memoryTrackTest || availableMemory >= delta;
|
||||
}
|
||||
|
||||
void ResolveZ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user