]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/batch.cpp
Disconnect the PrimitiveType enum from OpenGL constants
[libs/gl.git] / source / core / batch.cpp
index d53156bd7a66c7bba1bc922e92aa07c4d190c30b..2be5cc3a69ffacd2472f2575da0b480db37b3989 100644 (file)
@@ -52,6 +52,7 @@ unsigned Batch::restart_index = 0;
 
 Batch::Batch(PrimitiveType t):
        prim_type(t),
+       gl_prim_type(GL::get_gl_primitive_type(prim_type)),
        index_type(UNSIGNED_SHORT),
        gl_index_type(get_gl_type(index_type)),
        max_index(0),