summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_shade.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_shade.c
parent263220b82eadc878900668d22d867122fc735968 (diff)
OpenGL2: Reduce redundant GL calls.
Diffstat (limited to 'src/renderergl2/tr_shade.c')
-rw-r--r--src/renderergl2/tr_shade.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/renderergl2/tr_shade.c b/src/renderergl2/tr_shade.c
index 1ddfef69..b66fb10d 100644
--- a/src/renderergl2/tr_shade.c
+++ b/src/renderergl2/tr_shade.c
@@ -146,7 +146,6 @@ static void DrawTris (shaderCommands_t *input) {
shaderProgram_t *sp = &tr.textureColorShader;
vec4_t color;
- GLSL_VertexAttribsState(ATTR_POSITION);
GLSL_BindProgram(sp);
GLSL_SetUniformMat4(sp, UNIFORM_MODELVIEWPROJECTIONMATRIX, glState.modelviewProjection);
@@ -1538,15 +1537,12 @@ void RB_StageIteratorGeneric( void )
if ( input->shader->polygonOffset )
{
qglEnable( GL_POLYGON_OFFSET_FILL );
- qglPolygonOffset( r_offsetFactor->value, r_offsetUnits->value );
}
//
// Set vertex attribs and pointers
//
- if (tess.useInternalVao)
- GLSL_VertexAttribsState(vertexAttribs);
- else if (glState.vertexAnimation)
+ if (glState.vertexAnimation)
GLSL_VertexAttribPointers(vertexAttribs & (ATTR_POSITION | ATTR_POSITION2 | ATTR_NORMAL | ATTR_NORMAL2 | ATTR_TANGENT | ATTR_TANGENT2));
//