From b76e9cbdbe28943ed27c8757efb547597678cbc7 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Tue, 11 Oct 2022 00:31:12 -0700 Subject: [PATCH] openglrenderer: revert back to glFlush Just can't win with this one. I started with glFinish because it's technically the correct option, however it caused issues on a GPU, so I switched it out for glFlush. Then I started noticing other frame sync oddities that would be fixed by using glFinish, so I switched back. Now, not only is it causing GPU issues on one system, it seems to be causing GPU issues on others too. So now glFlush seems like the lesser of the two evils, and I'm just going to have to find a way around the aforementioned frame sync issues. --- app/render/opengl/openglrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/render/opengl/openglrenderer.cpp b/app/render/opengl/openglrenderer.cpp index 2cb608783..b0c91d7ab 100644 --- a/app/render/opengl/openglrenderer.cpp +++ b/app/render/opengl/openglrenderer.cpp @@ -364,7 +364,7 @@ void OpenGLRenderer::Flush() { GL_PREAMBLE; - functions_->glFinish(); + functions_->glFlush(); } Color OpenGLRenderer::GetPixelFromTexture(Texture *texture, const QPointF &pt)