From 274a5a1aecc76431246c9d7a79cb4c2671f5fbca Mon Sep 17 00:00:00 2001 From: Le Tan Date: Mon, 7 May 2018 17:17:01 +0800 Subject: [PATCH] add openGL version hint --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c564d28e..78f635d5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,6 +9,8 @@ #include #include #include +#include + #include "utils/vutils.h" #include "vsingleinstanceguard.h" #include "vconfigmanager.h" @@ -125,6 +127,10 @@ int main(int argc, char *argv[]) QTextCodec::setCodecForLocale(codec); } + // Set openGL version. + // Or set environment QT_OPENGL to "angle/desktop/software". + // QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); + QApplication app(argc, argv); // The file path passed via command line arguments. @@ -173,6 +179,7 @@ int main(int argc, char *argv[]) // Check the openSSL. if (checkSSL) { + qDebug() << "openGL" << QOpenGLContext::openGLModuleType(); qDebug() << "openSSL" << QSslSocket::sslLibraryBuildVersionString() << QSslSocket::sslLibraryVersionNumber();