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

[dxvk] Fix incorrect comparison in DxvkSparsePageTable::updateMapping

m_mappings[page] was getting implicitly converted to bool.
This commit is contained in:
Tatsuyuki Ishi 2024-01-27 12:38:03 +09:00 committed by Philip Rebohle
parent 2ca8fdf890
commit 799aeff560

View File

@ -410,7 +410,7 @@ namespace dxvk {
DxvkCommandList* cmd, DxvkCommandList* cmd,
uint32_t page, uint32_t page,
DxvkSparseMapping&& mapping) { DxvkSparseMapping&& mapping) {
if (m_mappings[page] != page) { if (m_mappings[page] != mapping) {
if (m_mappings[page]) if (m_mappings[page])
cmd->trackResource<DxvkAccess::None>(m_mappings[page].m_page); cmd->trackResource<DxvkAccess::None>(m_mappings[page].m_page);