diff options
author | Marcos <marcosvitali@users.noreply.github.com> | 2018-11-27 00:31:44 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-11-27 00:31:44 +0100 |
commit | cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2 (patch) | |
tree | d8eebad471412afebbee0c0e465655695b8df585 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1713 from FernandoS27/bra-cc (diff) | |
download | yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.tar yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.tar.gz yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.tar.bz2 yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.tar.lz yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.tar.xz yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.tar.zst yuzu-cb8d51e37e7d630f1ea3dc816b2d5aaab2295bc2.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 630a58e49..2d5e65f41 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -620,7 +620,7 @@ void RasterizerOpenGL::DrawArrays() { SyncTransformFeedback(); SyncPointState(); CheckAlphaTests(); - + SyncPolygonOffset(); // TODO(bunnei): Sync framebuffer_scale uniform here // TODO(bunnei): Sync scissorbox uniform(s) here @@ -1179,6 +1179,16 @@ void RasterizerOpenGL::SyncPointState() { state.point.size = regs.point_size; } +void RasterizerOpenGL::SyncPolygonOffset() { + const auto& regs = Core::System::GetInstance().GPU().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; + state.polygon_offset.units = regs.polygon_offset_units; + state.polygon_offset.factor = regs.polygon_offset_factor; + state.polygon_offset.clamp = regs.polygon_offset_clamp; +} + void RasterizerOpenGL::CheckAlphaTests() { const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; |