This commit is contained in:
Branimir Karadžić
2017-07-28 19:50:33 -07:00
parent b0efd3c44d
commit bed131c879

View File

@@ -3056,8 +3056,8 @@ namespace bgfx
return invalid;
}
uint32_t shaderHash = bx::hashMurmur2A(_mem->data, _mem->size);
uint16_t idx = m_shaderHashMap.find(shaderHash);
const uint32_t shaderHash = bx::hashMurmur2A(_mem->data, _mem->size);
const uint16_t idx = m_shaderHashMap.find(shaderHash);
if (kInvalidHandle != idx)
{
ShaderHandle handle = { idx };