From 2649af3be38bfb3034c0fabb3010d899b6e39ca4 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Tue, 3 May 2016 18:00:08 +0600 Subject: [PATCH] Revert commit ebfd9b3... Enable texture mirror if real_size / size == 2 Fixed Pokemon Snap textures are upside down #859 --- src/Textures.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Textures.cpp b/src/Textures.cpp index eb650f77..70ec01ce 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -913,7 +913,7 @@ void TextureCache::_getTextureDestData(CachedTexture& tmptex, if (tmptex.maskS > 0) { clampSClamp = tmptex.clampS ? tmptex.clampWidth - 1 : (tmptex.mirrorS ? (tmptex.width << 1) - 1 : tmptex.width - 1); maskSMask = (1 << tmptex.maskS) - 1; - mirrorSBit = (tmptex.mirrorS != 0 || tmptex.realWidth/tmptex.width == 2) ? 1 << tmptex.maskS : 0; + mirrorSBit = tmptex.mirrorS != 0 ? 1 << tmptex.maskS : 0; } else { clampSClamp = tmptex.clampS ? tmptex.clampWidth - 1 : tmptex.width - 1; maskSMask = 0xFFFF; @@ -923,7 +923,7 @@ void TextureCache::_getTextureDestData(CachedTexture& tmptex, if (tmptex.maskT > 0) { clampTClamp = tmptex.clampT ? tmptex.clampHeight - 1 : (tmptex.mirrorT ? (tmptex.height << 1) - 1 : tmptex.height - 1); maskTMask = (1 << tmptex.maskT) - 1; - mirrorTBit = (tmptex.mirrorT != 0 || tmptex.realHeight/tmptex.height == 2) ? 1 << tmptex.maskT : 0; + mirrorTBit = tmptex.mirrorT != 0 ? 1 << tmptex.maskT : 0; } else { clampTClamp = tmptex.clampT ? tmptex.clampHeight - 1 : tmptex.height - 1; maskTMask = 0xFFFF;