From 24ba730bdb20962551264bbb43cdb99f131c9ddd Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Sun, 10 Feb 2008 15:06:23 +0000 Subject: [PATCH] * in iV_DrawTextRotated() select the model view matrix and don't depend on that one being selected already * Also push and pop the model view matrix git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3737 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/ivis_opengl/textdraw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ivis_opengl/textdraw.c b/lib/ivis_opengl/textdraw.c index b0df9e4ee..22068c457 100644 --- a/lib/ivis_opengl/textdraw.c +++ b/lib/ivis_opengl/textdraw.c @@ -608,7 +608,8 @@ void iV_DrawTextRotated(const char* string, float XPos, float YPos, float rotati glMatrixMode(GL_TEXTURE); glPushMatrix(); glLoadIdentity(); - glMatrixMode(matrix_mode); + glMatrixMode(GL_MODELVIEW); + glPushMatrix(); if (rotation != 0.f) { @@ -626,6 +627,7 @@ void iV_DrawTextRotated(const char* string, float XPos, float YPos, float rotati glcRenderString(string); glFrontFace(GL_CCW); + glPopMatrix(); glMatrixMode(GL_TEXTURE); glPopMatrix(); glMatrixMode(matrix_mode);