From: havoc Date: Sat, 8 Mar 2008 16:55:46 +0000 (+0000) Subject: another attempt at fixing the Mac OSX rotating hud problem X-Git-Tag: xonotic-v0.1.0preview~2331 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5da293e109a8c8a1b1a6726392c53ab20bc1f3f0;p=xonotic%2Fdarkplaces.git another attempt at fixing the Mac OSX rotating hud problem git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8195 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index 8ea67170..6b7f9998 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -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);