* 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
master
Giel van Schijndel 2008-02-10 15:06:23 +00:00
parent 637edb1f0d
commit 24ba730bdb
1 changed files with 3 additions and 1 deletions

View File

@ -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);