From 799aeff5608dc8f73bc95e1209f29c8020e247c8 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Sat, 27 Jan 2024 12:38:03 +0900 Subject: [PATCH] [dxvk] Fix incorrect comparison in DxvkSparsePageTable::updateMapping m_mappings[page] was getting implicitly converted to bool. --- src/dxvk/dxvk_sparse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_sparse.cpp b/src/dxvk/dxvk_sparse.cpp index cbe318901..a8547bcfe 100644 --- a/src/dxvk/dxvk_sparse.cpp +++ b/src/dxvk/dxvk_sparse.cpp @@ -410,7 +410,7 @@ namespace dxvk { DxvkCommandList* cmd, uint32_t page, DxvkSparseMapping&& mapping) { - if (m_mappings[page] != page) { + if (m_mappings[page] != mapping) { if (m_mappings[page]) cmd->trackResource(m_mappings[page].m_page);