From aa5f80b975b4bdef2a056c376d8be3c88d16f5a6 Mon Sep 17 00:00:00 2001 From: SmileTheory Date: Tue, 14 Oct 2014 06:15:06 -0700 Subject: OpenGL2: Reduce redundant GL calls. --- src/renderergl2/tr_glsl.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/renderergl2/tr_glsl.c') diff --git a/src/renderergl2/tr_glsl.c b/src/renderergl2/tr_glsl.c index d41fb1ff..fb4a0a2d 100644 --- a/src/renderergl2/tr_glsl.c +++ b/src/renderergl2/tr_glsl.c @@ -1485,25 +1485,6 @@ void GLSL_BindNullProgram(void) } -void GLSL_VertexAttribsState(uint32_t stateBits) -{ - int attribIndex; - for (attribIndex = 0; attribIndex < ATTR_INDEX_COUNT; attribIndex++) - { - uint32_t attribBit = 1 << attribIndex; - if (stateBits & attribBit) - { - qglEnableVertexAttribArrayARB(attribIndex); - } - else - { - qglDisableVertexAttribArrayARB(attribIndex); - } - } - - GLSL_VertexAttribPointers(stateBits); -} - void GLSL_VertexAttribPointers(uint32_t attribBits) { int newFrame, oldFrame; -- cgit