diff options
author | SmileTheory <SmileTheory@gmail.com> | 2014-10-14 06:15:06 -0700 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:38:53 +0000 |
commit | aa5f80b975b4bdef2a056c376d8be3c88d16f5a6 (patch) | |
tree | f47c98ab05073fea2276e76a54e932f493228a32 /src/renderergl2/tr_glsl.c | |
parent | 263220b82eadc878900668d22d867122fc735968 (diff) |
OpenGL2: Reduce redundant GL calls.
Diffstat (limited to 'src/renderergl2/tr_glsl.c')
-rw-r--r-- | src/renderergl2/tr_glsl.c | 19 |
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; |