mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Revert commit ebfd9b3... Enable texture mirror if real_size / size == 2
Fixed Pokemon Snap textures are upside down #859
This commit is contained in:
parent
2cc29816f1
commit
2649af3be3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user