1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00

Restore equivalent to old code for nativeResFactor=0

This commit is contained in:
s2s 2021-06-06 22:15:53 +02:00 committed by Sergey Lipskiy
parent ce1fb27cf7
commit 213c10d6de

View File

@ -257,6 +257,10 @@ public:
} else {
texCoordOffset[t][0] = (gDP.lastTexRectInfo.dsdx >= 0.0f ? 0.0f : -1.0f) * gDP.lastTexRectInfo.dsdx * _pTexture->hdRatioS;
texCoordOffset[t][1] = (gDP.lastTexRectInfo.dtdy >= 0.0f ? 0.0f : -1.0f) * gDP.lastTexRectInfo.dtdy * _pTexture->hdRatioT;
if (gDP.otherMode.textureFilter != G_TF_POINT) {
texCoordOffset[t][0] -= 0.5f;
texCoordOffset[t][1] -= 0.5f;
}
}
}
}