summaryrefslogtreecommitdiffstats
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-21 02:56:32 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-31 16:32:55 +0100
commit3b78af904e5a4f959ab206a207bd26441886c9a8 (patch)
tree433864eb52694d82b4aaa1f8268121ac8b94ce65 /src/video_core/rasterizer.cpp
parentPica/DebugUtils: Fix a bug in RGBA4 texture decoding. (diff)
downloadyuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.tar
yuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.tar.gz
yuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.tar.bz2
yuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.tar.lz
yuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.tar.xz
yuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.tar.zst
yuzu-3b78af904e5a4f959ab206a207bd26441886c9a8.zip
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 5f7971fe2..08b649fb6 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -214,7 +214,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
}
};
s = GetWrappedTexCoord(registers.texture0.wrap_s, s, registers.texture0.width);
- t = GetWrappedTexCoord(registers.texture0.wrap_t, t, registers.texture0.height);
+ t = registers.texture0.height - 1 - GetWrappedTexCoord(registers.texture0.wrap_t, t, registers.texture0.height);
u8* texture_data = Memory::GetPointer(PAddrToVAddr(texture.config.GetPhysicalAddress()));
auto info = DebugUtils::TextureInfo::FromPicaRegister(texture.config, texture.format);