From 5da293e109a8c8a1b1a6726392c53ab20bc1f3f0 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 8 Mar 2008 16:55:46 +0000 Subject: [PATCH] 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 --- gl_backend.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2