Fix usage calculation for constant buffers to match non-sparse cbuffers

This commit is contained in:
baldurk
2016-11-10 12:39:49 +01:00
parent ec32769395
commit 8f265a76cf
+4 -6
View File
@@ -1491,13 +1491,11 @@ bool D3D11RenderState::shader::Used_CB(uint32_t slot) const
if(dxbc == NULL)
return true;
if(slot >= dxbc->m_CBuffers.size())
return false;
for(size_t i = 0; i < dxbc->m_CBuffers.size(); i++)
if(dxbc->m_CBuffers[i].reg == slot)
return true;
if(dxbc->m_CBuffers[slot].variables.empty())
return false;
return true;
return false;
}
bool D3D11RenderState::shader::Used_SRV(uint32_t slot) const