diff options
author | bunnei <bunneidev@gmail.com> | 2019-10-09 21:38:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-09 21:38:52 +0200 |
commit | 6b5e50d20e22b10424fe35ce576d38b0c7b4f931 (patch) | |
tree | 9d4be6f66e2f07d85f7ac337dc4337e21bcd0e78 | |
parent | Merge pull request #2921 from FreddyFunk/compiler-warnings-core (diff) | |
parent | gl_rasterizer: Fix polygon offset units (diff) | |
download | yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.tar yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.tar.gz yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.tar.bz2 yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.tar.lz yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.tar.xz yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.tar.zst yuzu-6b5e50d20e22b10424fe35ce576d38b0c7b4f931.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 6a17bed72..a85f730a8 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1340,7 +1340,9 @@ void RasterizerOpenGL::SyncPolygonOffset() { state.polygon_offset.fill_enable = regs.polygon_offset_fill_enable != 0; state.polygon_offset.line_enable = regs.polygon_offset_line_enable != 0; state.polygon_offset.point_enable = regs.polygon_offset_point_enable != 0; - state.polygon_offset.units = regs.polygon_offset_units; + + // Hardware divides polygon offset units by two + state.polygon_offset.units = regs.polygon_offset_units / 2.0f; state.polygon_offset.factor = regs.polygon_offset_factor; state.polygon_offset.clamp = regs.polygon_offset_clamp; |