|
|
@@ -3617,7 +3617,7 @@ namespace bgfx
|
|
|
{
|
|
|
BGFX_CHECK_HANDLE("setUniform", m_uniformHandle, _handle);
|
|
|
UniformRef& uniform = m_uniformRef[_handle.idx];
|
|
|
- BX_CHECK(uniform.m_num >= _num, "Truncated uniform update. %d (max: %d)", _num, uniform.m_num);
|
|
|
+ BX_CHECK(_num == UINT16_MAX || uniform.m_num >= _num, "Truncated uniform update. %d (max: %d)", _num, uniform.m_num);
|
|
|
if (BX_ENABLED(BGFX_CONFIG_DEBUG_UNIFORM) )
|
|
|
{
|
|
|
BX_CHECK(m_uniformSet.end() == m_uniformSet.find(_handle.idx)
|