From 04759b88cf3316b129886a9f596087e7c317ebc4 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 21 Feb 2020 18:21:07 +1100 Subject: [PATCH] qt/opengl: fixed bug that caused black screen on some platforms --- app/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index f7ebeebc0..e4e7491d6 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -40,9 +40,9 @@ extern "C" { int main(int argc, char *argv[]) { av_log_set_level(AV_LOG_QUIET); - // Set OpenGL display profile (3.0 Core) + // Set OpenGL display profile (3.2 Core) QSurfaceFormat format; - format.setVersion(3, 0); + format.setVersion(3, 2); format.setDepthBufferSize(24); format.setProfile(QSurfaceFormat::CoreProfile); QSurfaceFormat::setDefaultFormat(format);