summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-31 15:05:33 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-31 16:32:55 +0100
commitd13bd327ba70a89f8e634afc3c9c22ba3c0f6e38 (patch)
tree1192912fc063b43eb04ef4d155c561aff3aea9e5 /src/video_core
parentPica/Rasterizer: Clean up long code lines. (diff)
downloadyuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.tar
yuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.tar.gz
yuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.tar.bz2
yuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.tar.lz
yuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.tar.xz
yuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.tar.zst
yuzu-d13bd327ba70a89f8e634afc3c9c22ba3c0f6e38.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 9822b36a6..4dfc21885 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -229,8 +229,8 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
return 0;
}
};
- s = GetWrappedTexCoord(registers.texture0.wrap_s, s, registers.texture0.width);
- t = registers.texture0.height - 1 - GetWrappedTexCoord(registers.texture0.wrap_t, t, registers.texture0.height);
+ s = GetWrappedTexCoord(texture.config.wrap_s, s, texture.config.width);
+ t = texture.config.height - 1 - GetWrappedTexCoord(texture.config.wrap_t, t, texture.config.height);
u8* texture_data = Memory::GetPointer(PAddrToVAddr(texture.config.GetPhysicalAddress()));
auto info = DebugUtils::TextureInfo::FromPicaRegister(texture.config, texture.format);