Browse Source

Force at least 1 uniform element.

Branimir Karadžić 8 years ago
parent
commit
9b3031ab35
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bgfx_p.h

+ 2 - 0
src/bgfx_p.h

@@ -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)
 			{
 			{