From 24fa6eee7648713a4d779e5b5d0affdfd73bb4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 23 Aug 2015 15:20:39 -0700 Subject: [PATCH] Cleanup. --- src/renderer_d3d12.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index af905f8e..d789a2a5 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -4470,11 +4470,10 @@ data.NumQualityLevels = 0; m_batch.flush(m_commandList); } - for (uint32_t bindHash = bx::hashMurmur2A(draw.m_bind, sizeof(draw.m_bind) ) - ; currentBindHash != bindHash - ; currentBindHash = bindHash - ) + if (currentBindHash != bindHash) { + currentBindHash = bindHash; + D3D12_GPU_DESCRIPTOR_HANDLE* srv = bindLru.find(bindHash); if (NULL == srv) {