summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_init.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2016-01-18 23:30:36 -0800
committerTim Angus <tim@ngus.net>2016-04-07 11:53:16 +0100
commit95633de9cb7414060e6d7c1102dd85385f203311 (patch)
treeb05d82272cfee40acd0ae32d02d1b1f5c270a6d4 /src/renderergl2/tr_init.c
parent970b21fbcd3d42e641807ac0c5e9a29dc21095e9 (diff)
OpenGL2: Direct state access, part 2: Uniforms.
Diffstat (limited to 'src/renderergl2/tr_init.c')
-rw-r--r--src/renderergl2/tr_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/renderergl2/tr_init.c b/src/renderergl2/tr_init.c
index 05b00465..8e27c620 100644
--- a/src/renderergl2/tr_init.c
+++ b/src/renderergl2/tr_init.c
@@ -902,8 +902,7 @@ void GL_SetDefaultState( void )
glState.faceCulling = CT_TWO_SIDED;
glState.faceCullFront = qtrue;
- glState.currentProgram = 0;
- qglUseProgramObjectARB(0);
+ GL_BindNullProgram();
if (glRefConfig.vertexArrayObject)
qglBindVertexArrayARB(0);