twn_gl_15_rendering.c: only disable color array for sprite batch if it was used
This commit is contained in:
parent
fd6615744e
commit
1f8a225f89
@ -339,7 +339,9 @@ void finally_render_sprites(const Primitive2D primitives[],
|
||||
|
||||
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
|
||||
glDisableClientState(GL_VERTEX_ARRAY);
|
||||
glDisableClientState(GL_COLOR_ARRAY);
|
||||
|
||||
if (!batch.constant_colored)
|
||||
glDisableClientState(GL_COLOR_ARRAY);
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user