diff options
Diffstat (limited to 'Smoke/renderer_gl.c')
-rw-r--r-- | Smoke/renderer_gl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c index 795d4f2..4864c25 100644 --- a/Smoke/renderer_gl.c +++ b/Smoke/renderer_gl.c @@ -439,7 +439,8 @@ static void render_glyph(GLUquadricObj *qobj, float x_value, float y_value, floa glPushMatrix(); - glBindTexture(GL_TEXTURE_2D, texture); + glEnable(GL_TEXTURE_2D); + glTranslatef(x0, y0, z0); glRotatef(theta, 0.0, 0.0, 1.0); glTranslatef(-x0, -y0, -z0); @@ -452,7 +453,8 @@ static void render_glyph(GLUquadricObj *qobj, float x_value, float y_value, floa glEnd(); glRotatef(-theta, 0.0, 0.0, 1.0); - glBindTexture(GL_TEXTURE_2D, 0); + + glDisable(GL_TEXTURE_2D); glPopMatrix(); break; |