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

Shift S2DEX background texture coordinates in non-native resolutions.

This commit is contained in:
s2s 2021-05-23 21:28:16 +02:00 committed by Sergey Lipskiy
parent 865e9b443e
commit e0d5b0be7b

View File

@ -502,6 +502,13 @@ struct ObjCoordinates
lrs = uls + (lrx - ulx) * scaleW;
lrt = ult + (lry - uly) * scaleH;
if (config.frameBufferEmulation.nativeResFactor != 1 || config.video.multisampling != 0) {
uls -= 0.5f * scaleW;
ult -= 0.5f * scaleH;
lrs -= 0.5f * scaleW;
lrt -= 0.5f * scaleH;
}
// G_CYC_COPY (BgRectCopyOnePiece()) does not allow texture filtering
if (gDP.otherMode.cycleType != G_CYC_COPY) {
// Correct texture coordinates if G_OBJRM_BILERP