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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user