diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-01 07:00:23 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-01 07:00:23 +0200 |
commit | 69c806feb631509fac804ac2677b3787d883cf75 (patch) | |
tree | 5c317a756d43860310c47c0f3a79075122119ece /src/video_core | |
parent | Merge pull request #2923 from yuzu-emu/revert-2574-dynarmic-jit-nullptr (diff) | |
download | yuzu-69c806feb631509fac804ac2677b3787d883cf75.tar yuzu-69c806feb631509fac804ac2677b3787d883cf75.tar.gz yuzu-69c806feb631509fac804ac2677b3787d883cf75.tar.bz2 yuzu-69c806feb631509fac804ac2677b3787d883cf75.tar.lz yuzu-69c806feb631509fac804ac2677b3787d883cf75.tar.xz yuzu-69c806feb631509fac804ac2677b3787d883cf75.tar.zst yuzu-69c806feb631509fac804ac2677b3787d883cf75.zip |
Diffstat (limited to 'src/video_core')
-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; |