summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2015-01-01 19:59:11 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2015-02-18 14:50:28 +0100
commit8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431 (patch)
tree69a6ff08e515a692d42dc403c11cbf17e12def0b /src
parentPica/OutputMerger: Implement color format checking. (diff)
downloadyuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar
yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar.gz
yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar.bz2
yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar.lz
yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar.xz
yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar.zst
yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/pica.h2
-rw-r--r--src/video_core/rasterizer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index effa61571..ef9809d57 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -131,7 +131,7 @@ struct Regs {
union {
BitField< 8, 2, WrapMode> wrap_s;
- BitField<11, 2, WrapMode> wrap_t;
+ BitField<12, 2, WrapMode> wrap_t;
};
INSERT_PADDING_WORDS(0x1);
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index 27eeb531d..65dddb47c 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -243,7 +243,7 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
int s = (int)(uv[i].u() * float24::FromFloat32(static_cast<float>(texture.config.width))).ToFloat32();
int t = (int)(uv[i].v() * float24::FromFloat32(static_cast<float>(texture.config.height))).ToFloat32();
- auto GetWrappedTexCoord = [](Regs::TextureConfig::WrapMode mode, int val, unsigned size) {
+ static auto GetWrappedTexCoord = [](Regs::TextureConfig::WrapMode mode, int val, unsigned size) {
switch (mode) {
case Regs::TextureConfig::ClampToEdge:
val = std::max(val, 0);