]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
another attempt at fixing the Mac OSX rotating hud problem
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Mar 2008 16:55:46 +0000 (16:55 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 8 Mar 2008 16:55:46 +0000 (16:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8195 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 8ea6717062e08eeb2c748b291d5a69859f3d7b96..6b7f99981c39f176c0868b82e625abe784266ca1 100644 (file)
@@ -1838,6 +1838,7 @@ void R_Mesh_TexMatrix(unsigned int unitnum, const matrix4x4_t *matrix)
                if (unit->texmatrixenabled)
                {
                        unit->texmatrixenabled = false;
+                       unit->matrix = identitymatrix;
                        CHECKGLERROR
                        GL_ActiveTexture(unitnum);
                        GL_ClientActiveTexture(unitnum);
@@ -2011,6 +2012,7 @@ void R_Mesh_ResetTextureState(void)
                if (unit->texmatrixenabled)
                {
                        unit->texmatrixenabled = false;
+                       unit->matrix = identitymatrix;
                        CHECKGLERROR
                        qglMatrixMode(GL_TEXTURE);CHECKGLERROR
                        GL_ActiveTexture(unitnum);