Allow QSurfaceFormat::NoProfile in OpenGL detection.

This commit is contained in:
John Preston 2021-09-09 16:31:32 +03:00
parent 52718aa5db
commit 5b521d63a4

View file

@ -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: {