diff options
Diffstat (limited to 'src/render/gl_batch.h')
| -rw-r--r-- | src/render/gl_batch.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/render/gl_batch.h b/src/render/gl_batch.h index 04f72a7..21b8f58 100644 --- a/src/render/gl_batch.h +++ b/src/render/gl_batch.h @@ -125,14 +125,12 @@ inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) { inline U8 gl_batch_is_allowed_primitive( U16 primitive ) { switch( primitive ) { - case GL_TRIANGLE_FAN: - case GL_TRIANGLE_STRIP: - case GL_QUAD_STRIP: - case GL_LINE_STRIP: - case GL_LINE_LOOP: - return 0; - default: + case GL_TRIANGLES: + case GL_LINES: + case GL_QUADS: return 1; + default: + return 0; } } |
