From 41f50c2ba09e45f7df57e05dfd894bcdd2e6fb1c Mon Sep 17 00:00:00 2001 From: Vincent Pelletier Date: Sun, 10 Jul 2016 13:14:32 +0000 Subject: [PATCH] GRIM: Get rid of a few TinyGL-only lines. Now that TinyGL behaves better around matrices, these lines become superfluous. --- engines/grim/gfx_tinygl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/engines/grim/gfx_tinygl.cpp b/engines/grim/gfx_tinygl.cpp index b4cf530843a..b5365a16976 100644 --- a/engines/grim/gfx_tinygl.cpp +++ b/engines/grim/gfx_tinygl.cpp @@ -877,7 +877,7 @@ void GfxTinyGL::rotateViewpoint(const Math::Matrix4 &rot) { } void GfxTinyGL::translateViewpointFinish() { - //glMatrixMode(GL_MODELVIEW); // exist in opengl but doesn't work properly here + tglMatrixMode(TGL_MODELVIEW); tglPopMatrix(); } @@ -1247,12 +1247,9 @@ void GfxTinyGL::selectTexture(const Texture *texture) { // Grim has inverted tex-coords, EMI doesn't if (g_grim->getGameType() != GType_MONKEY4) { - tglPushMatrix(); // removed in opengl but here doesn't work properly after remove tglMatrixMode(TGL_TEXTURE); tglLoadIdentity(); tglScalef(1.0f / texture->_width, 1.0f / texture->_height, 1); - tglMatrixMode(TGL_MODELVIEW); // removed in opengl but here doesn't work properly after remove - tglPopMatrix(); // removed in opengl but here doesn't work properly after remove } }