diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-26 01:04:13 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-10-26 06:42:57 +0200 |
commit | 58444a0376f67c38a35fed2b0f67feccff49afd3 (patch) | |
tree | e14a7fc0f3bd80faa32c0b7257bb2eb76744374c /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1533 from FernandoS27/lmem (diff) | |
download | yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.tar yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.tar.gz yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.tar.bz2 yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.tar.lz yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.tar.xz yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.tar.zst yuzu-58444a0376f67c38a35fed2b0f67feccff49afd3.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index b472f421f..cd4216c4e 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -570,6 +570,7 @@ void RasterizerOpenGL::DrawArrays() { SyncBlendState(); SyncLogicOpState(); SyncCullMode(); + SyncPrimitiveRestart(); SyncDepthRange(); SyncScissorTest(); // Alpha Testing is synced on shaders. @@ -924,6 +925,13 @@ void RasterizerOpenGL::SyncCullMode() { } } +void RasterizerOpenGL::SyncPrimitiveRestart() { + const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; + + state.primitive_restart.enabled = regs.primitive_restart.enabled; + state.primitive_restart.index = regs.primitive_restart.index; +} + void RasterizerOpenGL::SyncDepthRange() { const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs; |