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

Fix detection of native-res texture rectangle when computing the texture coordinate offset.

This commit is contained in:
s2s 2021-06-03 19:57:49 +02:00 committed by Sergey Lipskiy
parent 66e8ff3c00
commit ce1fb27cf7

View File

@ -242,7 +242,7 @@ public:
float texCoordOffset[2][2] = { 0.0f, 0.0f };
if (isTexRect && !isNativeRes) {
float scale[2] = { 0.0f, 0.0f };
if (config.graphics2D.enableNativeResTexrects != 0) {
if (config.graphics2D.enableNativeResTexrects != 0 && gDP.otherMode.textureFilter != G_TF_POINT) {
scale[0] = scale[1] = 1.0f;
} else {
scale[0] = scale[1] = static_cast<float>(config.frameBufferEmulation.nativeResFactor);