gawain: assert for immBeginAtMost(..., 0)

This commit is contained in:
Dalai Felinto 2016-10-13 02:16:55 +00:00
parent 84ed9d9829
commit b5c539f9fa
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ void immBegin(GLenum primitive, unsigned vertex_ct)
void immBeginAtMost(GLenum primitive, unsigned vertex_ct)
{
#if TRUST_NO_ONE
assert(vertex_ct > 0);
#endif
imm.strict_vertex_ct = false;
immBegin(primitive, vertex_ct);
}