From 5b521d63a424b9b2521c13785e5f264279c7ba2e Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 9 Sep 2021 16:31:32 +0300 Subject: [PATCH] Allow QSurfaceFormat::NoProfile in OpenGL detection. --- ui/gl/gl_detection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/gl/gl_detection.cpp b/ui/gl/gl_detection.cpp index 33c929a..2f9a5a1 100644 --- a/ui/gl/gl_detection.cpp +++ b/ui/gl/gl_detection.cpp @@ -131,8 +131,7 @@ Capabilities CheckCapabilities(QWidget *widget) { if (supported.renderableType() == QSurfaceFormat::OpenGLES) { LOG_ONCE(("OpenGL Profile: OpenGLES.")); } else { - LOG_ONCE(("OpenGL Profile: None.")); - return {}; + LOG_ONCE(("OpenGL Profile: NoProfile.")); } } break; case QSurfaceFormat::CoreProfile: {