|
|
@@ -3410,6 +3410,10 @@ namespace bgfx { namespace gl
|
|
|
m_used[used++] = ii;
|
|
|
}
|
|
|
}
|
|
|
+ BX_CHECK(used < BX_COUNTOF(m_used), "Out of bounds %d > array size %d."
|
|
|
+ , used
|
|
|
+ , BX_COUNTOF(m_used)
|
|
|
+ );
|
|
|
m_used[used] = Attrib::Count;
|
|
|
|
|
|
used = 0;
|
|
|
@@ -3422,6 +3426,10 @@ namespace bgfx { namespace gl
|
|
|
m_instanceData[used++] = loc;
|
|
|
}
|
|
|
}
|
|
|
+ BX_CHECK(used < BX_COUNTOF(m_instanceData), "Out of bounds %d > array size %d."
|
|
|
+ , used
|
|
|
+ , BX_COUNTOF(m_instanceData)
|
|
|
+ );
|
|
|
m_instanceData[used] = 0xffff;
|
|
|
}
|
|
|
|