1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

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
This commit is contained in:
Sergey Lipskiy 2015-04-06 11:34:16 +06:00
parent ebfd9b3c4e
commit 28e252b667

View File

@ -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;