mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Force at least 1 uniform element.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user