summaryrefslogtreecommitdiffstats
path: root/src/video_core/swrasterizer/rasterizer.cpp
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-05-05 14:29:35 +0200
committerwwylele <wwylele@gmail.com>2017-05-05 14:35:17 +0200
commit039b2930928c34c011fcc236d7f8c32599077ad0 (patch)
treefe23bee60f856aa18b5ddda1d4094a452489babc /src/video_core/swrasterizer/rasterizer.cpp
parentpica: use correct coordinates for texture 2 (diff)
downloadyuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.gz
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.bz2
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.lz
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.xz
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.tar.zst
yuzu-039b2930928c34c011fcc236d7f8c32599077ad0.zip
Diffstat (limited to 'src/video_core/swrasterizer/rasterizer.cpp')
-rw-r--r--src/video_core/swrasterizer/rasterizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/swrasterizer/rasterizer.cpp b/src/video_core/swrasterizer/rasterizer.cpp
index fa8377f80..20addf0bd 100644
--- a/src/video_core/swrasterizer/rasterizer.cpp
+++ b/src/video_core/swrasterizer/rasterizer.cpp
@@ -276,7 +276,8 @@ static void ProcessTriangleInternal(const Vertex& v0, const Vertex& v1, const Ve
DEBUG_ASSERT(0 != texture.config.address);
- int coordinate_i = (i == 2 && regs.texturing.texture2_use_coord1) ? 1 : i;
+ int coordinate_i =
+ (i == 2 && regs.texturing.main_config.texture2_use_coord1) ? 1 : i;
float24 u = uv[coordinate_i].u();
float24 v = uv[coordinate_i].v();