From cc8e5bc9d2ceb4e47ee088d47142c7fc474a3380 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 13 Feb 2020 15:38:11 +1100 Subject: [PATCH] opengl: don't share contexts and use older version --- app/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index 1d4ac99f2..f7ebeebc0 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -40,11 +40,9 @@ extern "C" { int main(int argc, char *argv[]) { av_log_set_level(AV_LOG_QUIET); - QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); - - // Set OpenGL display profile (3.2 Core) + // Set OpenGL display profile (3.0 Core) QSurfaceFormat format; - format.setVersion(3, 2); + format.setVersion(3, 0); format.setDepthBufferSize(24); format.setProfile(QSurfaceFormat::CoreProfile); QSurfaceFormat::setDefaultFormat(format);