summaryrefslogtreecommitdiff
path: root/src/render/gl_batch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/gl_batch.h')
-rw-r--r--src/render/gl_batch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/gl_batch.h b/src/render/gl_batch.h
index 31ed0ea..ed74d74 100644
--- a/src/render/gl_batch.h
+++ b/src/render/gl_batch.h
@@ -120,8 +120,8 @@ inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) {
GL_DYNAMIC_DRAW
);
- glBindBuffer( GL_ARRAY_BUFFER, 0 );
glDrawArrays( call->primitive, 0, call->vertices.size );
+ glBindBuffer( GL_ARRAY_BUFFER, 0 );
} );
gl_set_viewport( batch->gl, vp_start, vp_dim );