From 28e252b667f07ba12953f23094db09a5930085fd Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Mon, 6 Apr 2015 11:34:16 +0600 Subject: [PATCH] Remove legacy hack in texrect for textures which supposed to be mirrored, but do not have mirror flag. Fixed menu textures in Automobili Lamborghini, issue #180 --- OpenGL.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/OpenGL.cpp b/OpenGL.cpp index 9102f318..1e9ed6c7 100644 --- a/OpenGL.cpp +++ b/OpenGL.cpp @@ -1136,16 +1136,6 @@ void OGLRender::drawTexturedRect(const TexturedRectParams & _params) texST[0].s1 = (_params.lrs + 1.0f) * cache.current[0]->shiftScaleS - gSP.textureTile[0]->fuls; texST[0].t1 = (_params.lrt + 1.0f) * cache.current[0]->shiftScaleT - gSP.textureTile[0]->fult; - if ((cache.current[0]->maskS) && !(cache.current[0]->mirrorS) && (fmod(texST[0].s0, cache.current[0]->width) == 0.0f)) { - texST[0].s1 -= texST[0].s0; - texST[0].s0 = 0.0f; - } - - if ((cache.current[0]->maskT) && !(cache.current[0]->mirrorT) && (fmod(texST[0].t0, cache.current[0]->height) == 0.0f)) { - texST[0].t1 -= texST[0].t0; - texST[0].t0 = 0.0f; - } - if (cache.current[0]->frameBufferTexture) { texST[0].s0 = cache.current[0]->offsetS + texST[0].s0; texST[0].t0 = cache.current[0]->offsetT - texST[0].t0; @@ -1173,16 +1163,6 @@ void OGLRender::drawTexturedRect(const TexturedRectParams & _params) texST[1].s1 = (_params.lrs + 1.0f) * cache.current[1]->shiftScaleS - gSP.textureTile[1]->fuls; texST[1].t1 = (_params.lrt + 1.0f) * cache.current[1]->shiftScaleT - gSP.textureTile[1]->fult; - if ((cache.current[1]->maskS) && (fmod(texST[1].s0, cache.current[1]->width) == 0.0f) && !(cache.current[1]->mirrorS)) { - texST[1].s1 -= texST[1].s0; - texST[1].s0 = 0.0f; - } - - if ((cache.current[1]->maskT) && (fmod(texST[1].t0, cache.current[1]->height) == 0.0f) && !(cache.current[1]->mirrorT)) { - texST[1].t1 -= texST[1].t0; - texST[1].t0 = 0.0f; - } - if (cache.current[1]->frameBufferTexture) { texST[1].s0 = cache.current[1]->offsetS + texST[1].s0; texST[1].t0 = cache.current[1]->offsetT - texST[1].t0;