summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2015-01-03 13:51:51 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2015-02-18 14:50:28 +0100
commit81ebb4d682a1c2f452d96bd5545251a8fd856def (patch)
tree446d56d50e678250febe5bdacc00c45d78a27f21 /src/video_core
parentPica/TextureEnvironment: Treat texture combiner source 1 as the PrimaryColor. (diff)
downloadyuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.tar
yuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.tar.gz
yuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.tar.bz2
yuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.tar.lz
yuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.tar.xz
yuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.tar.zst
yuzu-81ebb4d682a1c2f452d96bd5545251a8fd856def.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/rasterizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 4bf7593ce..b7a7e62ab 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -277,6 +277,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
return 0;
}
};
+
+ // Textures are laid out from bottom to top, hence we invert the t coordinate.
+ // NOTE: This may not be the right place for the inversion.
+ // TODO: Check if this applies to ETC textures, too.
s = GetWrappedTexCoord(texture.config.wrap_s, s, texture.config.width);
t = texture.config.height - 1 - GetWrappedTexCoord(texture.config.wrap_t, t, texture.config.height);