mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
add openGL version hint
This commit is contained in:
parent
e47900f7ec
commit
274a5a1aec
@ -9,6 +9,8 @@
|
|||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QSslSocket>
|
#include <QSslSocket>
|
||||||
|
#include <QOpenGLContext>
|
||||||
|
|
||||||
#include "utils/vutils.h"
|
#include "utils/vutils.h"
|
||||||
#include "vsingleinstanceguard.h"
|
#include "vsingleinstanceguard.h"
|
||||||
#include "vconfigmanager.h"
|
#include "vconfigmanager.h"
|
||||||
@ -125,6 +127,10 @@ int main(int argc, char *argv[])
|
|||||||
QTextCodec::setCodecForLocale(codec);
|
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);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
// The file path passed via command line arguments.
|
// The file path passed via command line arguments.
|
||||||
@ -173,6 +179,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Check the openSSL.
|
// Check the openSSL.
|
||||||
if (checkSSL) {
|
if (checkSSL) {
|
||||||
|
qDebug() << "openGL" << QOpenGLContext::openGLModuleType();
|
||||||
qDebug() << "openSSL"
|
qDebug() << "openSSL"
|
||||||
<< QSslSocket::sslLibraryBuildVersionString()
|
<< QSslSocket::sslLibraryBuildVersionString()
|
||||||
<< QSslSocket::sslLibraryVersionNumber();
|
<< QSslSocket::sslLibraryVersionNumber();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user