preferences: add option to use glFinish

i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl i hate opengl
This commit is contained in:
itsmattkc
2022-11-05 12:49:30 -07:00
parent 3853ef023e
commit 1c4149a0fd
3 changed files with 13 additions and 1 deletions
+7 -1
View File
@@ -25,6 +25,8 @@
#include <QDebug>
#include <QOpenGLExtraFunctions>
#include "config/config.h"
namespace olive {
const int OpenGLRenderer::kTextureCacheMaxSize = 5000;
@@ -364,7 +366,11 @@ void OpenGLRenderer::Flush()
{
GL_PREAMBLE;
functions_->glFlush();
if (OLIVE_CONFIG("UseGLFinish").toBool()) {
functions_->glFinish();
} else {
functions_->glFlush();
}
}
Color OpenGLRenderer::GetPixelFromTexture(Texture *texture, const QPointF &pt)