Browse Source

debug: reset texture unit in the GL quad.

legacy
Sam Hocevar sam 13 years ago
parent
commit
5123b94188
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/debug/quad.cpp

+ 1
- 0
src/debug/quad.cpp View File

@@ -124,6 +124,7 @@ void DebugQuad::TickDraw(float deltams)
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);
glLoadIdentity(); glLoadIdentity();
glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_2D);
glClientActiveTexture(GL_TEXTURE0);
glBindBuffer(GL_ARRAY_BUFFER, 0); glBindBuffer(GL_ARRAY_BUFFER, 0);
glUseProgram(0); glUseProgram(0);




Loading…
Cancel
Save