1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Delay texcoord correction until multiplying by hdratio

This commit is contained in:
S2S 2020-07-12 22:45:38 +02:00 committed by Sergey Lipskiy
parent 2f5280c8ac
commit 65ad89ae3a

View File

@ -1379,6 +1379,11 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params)
}
}
texST[t].s0 *= cache.current[t]->hdRatioS;
texST[t].t0 *= cache.current[t]->hdRatioT;
texST[t].s1 *= cache.current[t]->hdRatioS;
texST[t].t1 *= cache.current[t]->hdRatioT;
if (gDP.otherMode.textureFilter != G_TF_POINT && gDP.otherMode.cycleType != G_CYC_COPY) {
texST[t].s0 -= 0.5f;
texST[t].t0 -= 0.5f;
@ -1386,12 +1391,6 @@ void GraphicsDrawer::drawTexturedRect(const TexturedRectParams & _params)
texST[t].t1 -= 0.5f;
}
texST[t].s0 *= cache.current[t]->hdRatioS;
texST[t].t0 *= cache.current[t]->hdRatioT;
texST[t].s1 *= cache.current[t]->hdRatioS;
texST[t].t1 *= cache.current[t]->hdRatioT;
}
}