diff options
author | Tuomo Pelkonen <tuomo.pelkonen@qt.io> | 2022-05-10 09:32:09 +0300 |
---|---|---|
committer | Tuomo Pelkonen <tuomo.pelkonen@qt.io> | 2022-06-17 05:06:15 +0000 |
commit | 0002284b59f73d29b40f85b55b8c4606fdffbaf0 (patch) | |
tree | ab94e92e8bf81352dd34435856365f2ba4aec2ab | |
parent | 7bf6aec0f8ded90fedbea87d33dda2e0a6c66f60 (diff) |
Use WebGL 2.0 / GLES 3.0
Change-Id: Iac745676d6adb86c2be5f93fd6397df7f7af2152
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r-- | main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -287,6 +287,9 @@ int main(int argc, char *argv[]) #if QT_VERSION_MAJOR < 6 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif + QSurfaceFormat format = QSurfaceFormat::defaultFormat(); + format.setVersion(3,0); + QSurfaceFormat::setDefaultFormat(format); #if defined(Q_OS_ANDROID) QApplication app(argc, argv); |