diff options
| author | Kasullian <tomkasull@gmail.com> | 2025-09-10 07:16:42 -0400 |
|---|---|---|
| committer | Kasullian <tomkasull@gmail.com> | 2025-09-10 07:16:42 -0400 |
| commit | e2366afb57d69f3952bbb4d1894d82293cd1cb9d (patch) | |
| tree | c0c36fb3596bbea73dbfcf11707a3aaf7b1e76f5 /src/render/gl_batch.h | |
| parent | 496e2bbc68aaaaf99d935233ce3ba0636f1bf0cf (diff) | |
remove unnecessary code
Diffstat (limited to 'src/render/gl_batch.h')
| -rw-r--r-- | src/render/gl_batch.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/render/gl_batch.h b/src/render/gl_batch.h index 7ca9fe3..944521f 100644 --- a/src/render/gl_batch.h +++ b/src/render/gl_batch.h @@ -91,7 +91,6 @@ inline void gl_batch_empty( GL_BATCH<VERTEX>* batch ) { template <typename VERTEX> inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) { glUseProgram( batch->shader->id ); - glBindVertexArray( batch->gl->vao ); VEC2 vp_start, vp_dim, clip_start, clip_dim; gl_get_viewport( batch->gl, &vp_start, &vp_dim ); @@ -118,7 +117,6 @@ inline void gl_batch_draw( GL_BATCH<VERTEX>* batch ) { gl_set_viewport( batch->gl, vp_start, vp_dim ); gl_set_clip( batch->gl, clip_start, clip_dim ); - glBindVertexArray( 0 ); } template <typename VERTEX> |
