summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_glsl.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2014-10-14 06:15:06 -0700
committerTim Angus <tim@ngus.net>2015-03-17 11:38:53 +0000
commitaa5f80b975b4bdef2a056c376d8be3c88d16f5a6 (patch)
treef47c98ab05073fea2276e76a54e932f493228a32 /src/renderergl2/tr_glsl.c
parent263220b82eadc878900668d22d867122fc735968 (diff)
OpenGL2: Reduce redundant GL calls.
Diffstat (limited to 'src/renderergl2/tr_glsl.c')
-rw-r--r--src/renderergl2/tr_glsl.c19
1 files changed, 0 insertions, 19 deletions
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;