From 68f5aff64f231e77fed726b91619061e308b7b2d Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sun, 22 Sep 2019 07:23:13 -0400 Subject: Maxwell3D: Corrections and refactors to MME instance refactor --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/video_core/renderer_opengl') 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{}; -- cgit v1.2.3