Force at least 1 uniform element.
This commit is contained in:
parent
f59b754274
commit
9b3031ab35
@ -3500,6 +3500,8 @@ namespace bgfx
|
|||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_num = bx::uint16_max(1, _num);
|
||||||
|
|
||||||
uint16_t idx = m_uniformHashMap.find(bx::hashMurmur2A(_name) );
|
uint16_t idx = m_uniformHashMap.find(bx::hashMurmur2A(_name) );
|
||||||
if (UniformHashMap::invalid != idx)
|
if (UniformHashMap::invalid != idx)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user