diff options
author | bunnei <bunneidev@gmail.com> | 2019-07-24 23:07:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 23:07:57 +0200 |
commit | 9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa (patch) | |
tree | 7fa8532be550486ba4ef9f7b0a42970212aca175 /src/video_core/renderer_opengl | |
parent | Fix README change mistake (#2754) (diff) | |
parent | maxwell3d: Implement Conditional Rendering (diff) | |
download | yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.tar yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.tar.gz yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.tar.bz2 yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.tar.lz yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.tar.xz yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.tar.zst yuzu-9be9600bdcf0119e16d0cbbd7a50dcd2a6137efa.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index c59e687b6..c28ae795c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -595,7 +595,13 @@ void RasterizerOpenGL::ConfigureClearFramebuffer(OpenGLState& current_state, boo } void RasterizerOpenGL::Clear() { - const auto& regs = system.GPU().Maxwell3D().regs; + const auto& maxwell3d = system.GPU().Maxwell3D(); + + if (!maxwell3d.ShouldExecute()) { + return; + } + + const auto& regs = maxwell3d.regs; bool use_color{}; bool use_depth{}; bool use_stencil{}; @@ -697,6 +703,11 @@ void RasterizerOpenGL::DrawArrays() { MICROPROFILE_SCOPE(OpenGL_Drawing); auto& gpu = system.GPU().Maxwell3D(); + + if (!gpu.ShouldExecute()) { + return; + } + const auto& regs = gpu.regs; SyncColorMask(); |