diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 04:25:53 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 20:49:20 +0100 |
commit | a0321b984fc03610ad7b20d2ee345fd978103b19 (patch) | |
tree | 71aea201f3a60a3cacc933ba9d322066b27fe89d /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | gl_state: Remove alpha test tracking (diff) | |
download | yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.gz yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.bz2 yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.lz yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.xz yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.tar.zst yuzu-a0321b984fc03610ad7b20d2ee345fd978103b19.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index d1034c2a2..744892618 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1210,14 +1210,13 @@ void RasterizerOpenGL::SyncPolygonOffset() { auto& maxwell3d = system.GPU().Maxwell3D(); const auto& regs = maxwell3d.regs; - 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; + oglEnable(GL_POLYGON_OFFSET_FILL, regs.polygon_offset_fill_enable); + oglEnable(GL_POLYGON_OFFSET_LINE, regs.polygon_offset_line_enable); + oglEnable(GL_POLYGON_OFFSET_POINT, regs.polygon_offset_point_enable); // 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; + glPolygonOffsetClamp(regs.polygon_offset_factor, regs.polygon_offset_units / 2.0f, + regs.polygon_offset_clamp); } void RasterizerOpenGL::SyncAlphaTest() { |