diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-22 13:23:13 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-09-22 13:23:13 +0200 |
commit | 68f5aff64f231e77fed726b91619061e308b7b2d (patch) | |
tree | dfb0af079a7e4f6da108a9dd4484c9cee069b2d0 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Rasterizer: Correct introduced bug where a conditional render wouldn't stop a draw call from executing (diff) | |
download | yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.gz yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.bz2 yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.lz yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.xz yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.tar.zst yuzu-68f5aff64f231e77fed726b91619061e308b7b2d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index a6fe7dd71..246b892c5 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -749,13 +749,9 @@ bool RasterizerOpenGL::DrawBatch(bool is_indexed) { MICROPROFILE_SCOPE(OpenGL_Drawing); - auto& maxwell3d = system.GPU().Maxwell3D(); - if (!maxwell3d.ShouldExecute()) { - return false; - } - DrawPrelude(); + auto& maxwell3d = system.GPU().Maxwell3D(); const auto& regs = maxwell3d.regs; const auto current_instance = maxwell3d.state.current_instance; DrawParams draw_call{}; @@ -785,13 +781,9 @@ bool RasterizerOpenGL::DrawMultiBatch(bool is_indexed) { MICROPROFILE_SCOPE(OpenGL_Drawing); - auto& maxwell3d = system.GPU().Maxwell3D(); - if (!maxwell3d.ShouldExecute()) { - return false; - } - DrawPrelude(); + auto& maxwell3d = system.GPU().Maxwell3D(); const auto& regs = maxwell3d.regs; const auto& draw_setup = maxwell3d.mme_draw; DrawParams draw_call{}; |