diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2015-01-01 19:59:11 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2015-02-18 14:50:28 +0100 |
commit | 8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431 (patch) | |
tree | 69a6ff08e515a692d42dc403c11cbf17e12def0b /src/video_core/rasterizer.cpp | |
parent | Pica/OutputMerger: Implement color format checking. (diff) | |
download | yuzu-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/rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |