Force at least 1 uniform element.

This commit is contained in:
Branimir Karadžić 2017-03-27 19:27:52 -07:00
parent f59b754274
commit 9b3031ab35

View File

@ -3500,6 +3500,8 @@ namespace bgfx
return handle;
}
_num = bx::uint16_max(1, _num);
uint16_t idx = m_uniformHashMap.find(bx::hashMurmur2A(_name) );
if (UniformHashMap::invalid != idx)
{