diff options
| author | 2015-01-01 19:59:11 +0100 | |
|---|---|---|
| committer | 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.gz yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.tar.xz yuzu-8bd7a896ea82b5b2f4ff7f2ec50624ff6ec45431.zip | |
Pica: Fix a bug in the register definitions, relating to texture wrapping.
Diffstat (limited to 'src/video_core/rasterizer.cpp')
| -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, | |||
| 243 | 243 | ||
| 244 | int s = (int)(uv[i].u() * float24::FromFloat32(static_cast<float>(texture.config.width))).ToFloat32(); | 244 | int s = (int)(uv[i].u() * float24::FromFloat32(static_cast<float>(texture.config.width))).ToFloat32(); |
| 245 | int t = (int)(uv[i].v() * float24::FromFloat32(static_cast<float>(texture.config.height))).ToFloat32(); | 245 | int t = (int)(uv[i].v() * float24::FromFloat32(static_cast<float>(texture.config.height))).ToFloat32(); |
| 246 | auto GetWrappedTexCoord = [](Regs::TextureConfig::WrapMode mode, int val, unsigned size) { | 246 | static auto GetWrappedTexCoord = [](Regs::TextureConfig::WrapMode mode, int val, unsigned size) { |
| 247 | switch (mode) { | 247 | switch (mode) { |
| 248 | case Regs::TextureConfig::ClampToEdge: | 248 | case Regs::TextureConfig::ClampToEdge: |
| 249 | val = std::max(val, 0); | 249 | val = std::max(val, 0); |