preserve modelview matrix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2111 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-05-25 15:24:04 +00:00
parent 7450687660
commit c7456c9851
+2 -1
View File
@@ -488,7 +488,7 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract)
glEnable(GL_TEXTURE_2D);
transplayer();
glPushMatrix();
if(!refract)
{
glTranslatef(0, 0, 2*hf);
@@ -552,6 +552,7 @@ void drawreflection(float hf, int w, int h, float changelod, bool refract)
}
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
glPopMatrix();
if(!refract) glCullFace(GL_FRONT);
glViewport(0, 0, w, h);