Browse Source

Force use of core profile

Change-Id: I67fde4859b5d9939816efec3502a04ea69b9df36
Donald Carr 5 years ago
parent
commit
3fa970047c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main.cpp

+ 2 - 0
src/main.cpp

@@ -237,6 +237,7 @@ int main(int argc, char *argv[])
 #endif
 #endif
     } else {
     } else {
         QSurfaceFormat format = QSurfaceFormat::defaultFormat();
         QSurfaceFormat format = QSurfaceFormat::defaultFormat();
+        format.setProfile(QSurfaceFormat::CoreProfile);
 
 
         bool force24bpp = settings.value("force24bpp", false).toBool();
         bool force24bpp = settings.value("force24bpp", false).toBool();
         bool force16bpp = settings.value("force16bpp", false).toBool();
         bool force16bpp = settings.value("force16bpp", false).toBool();
@@ -270,6 +271,7 @@ int main(int argc, char *argv[])
         settings.setValue("forceDoubleBuffer", forceDoubleBuffer);
         settings.setValue("forceDoubleBuffer", forceDoubleBuffer);
         settings.setValue("forceTripleBuffer", forceTripleBuffer);
         settings.setValue("forceTripleBuffer", forceTripleBuffer);
 
 
+        qDebug() << "Setting format" << format;
         QSurfaceFormat::setDefaultFormat(format);
         QSurfaceFormat::setDefaultFormat(format);
     }
     }