[Bf-blender-cvs] [b5c539f] blender2.8: gawain: assert for immBeginAtMost(..., 0)
Dalai Felinto
noreply at git.blender.org
Thu Oct 13 05:02:38 CEST 2016
Commit: b5c539f9fa91b4966d95bf1d4efa9cef77be705b
Author: Dalai Felinto
Date: Thu Oct 13 02:16:55 2016 +0000
Branches: blender2.8
https://developer.blender.org/rBb5c539f9fa91b4966d95bf1d4efa9cef77be705b
gawain: assert for immBeginAtMost(..., 0)
===================================================================
M source/blender/gpu/gawain/immediate.c
===================================================================
diff --git a/source/blender/gpu/gawain/immediate.c b/source/blender/gpu/gawain/immediate.c
index 3849453..9565c89 100644
--- a/source/blender/gpu/gawain/immediate.c
+++ b/source/blender/gpu/gawain/immediate.c
@@ -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);
}
More information about the Bf-blender-cvs
mailing list