From f526f5977bb3fa25443a71117a5654f0bcfb2fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 17 Oct 2020 12:50:59 +0200 Subject: [PATCH] OpenGL: Disable auto invalidation of framebuffers, it has somehow broken (Breaks DBZ: Tag Team) --- Common/GPU/OpenGL/GLQueueRunner.cpp | 3 ++- Common/GPU/OpenGL/GLQueueRunner.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Common/GPU/OpenGL/GLQueueRunner.cpp b/Common/GPU/OpenGL/GLQueueRunner.cpp index 7776d7da4d..642db6a143 100644 --- a/Common/GPU/OpenGL/GLQueueRunner.cpp +++ b/Common/GPU/OpenGL/GLQueueRunner.cpp @@ -617,6 +617,7 @@ void GLQueueRunner::RunSteps(const std::vector &steps, bool skipGLCal }; int invalidateAllMask = GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT; + /* for (int j = 0; j < (int)steps.size() - 1; ++j) { GLRStep &primaryStep = *steps[j]; if (primaryStep.stepType == GLRStepType::RENDER) { @@ -648,7 +649,7 @@ void GLQueueRunner::RunSteps(const std::vector &steps, bool skipGLCal primaryStep.commands.push_back(data); } } - } + }*/ CHECK_GL_ERROR_IF_DEBUG(); size_t renderCount = 0; diff --git a/Common/GPU/OpenGL/GLQueueRunner.h b/Common/GPU/OpenGL/GLQueueRunner.h index 742f885768..79559c4d4d 100644 --- a/Common/GPU/OpenGL/GLQueueRunner.h +++ b/Common/GPU/OpenGL/GLQueueRunner.h @@ -136,7 +136,7 @@ struct GLRRenderData { int16_t scissorY; int16_t scissorW; int16_t scissorH; - } clear; + } clear; // also used for invalidate struct { int slot; GLRTexture *texture;