Explorar el Código

Force use of core profile

Change-Id: I67fde4859b5d9939816efec3502a04ea69b9df36
Donald Carr hace 5 años
padre
commit
3fa970047c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/main.cpp

+ 2 - 0
src/main.cpp

@@ -237,6 +237,7 @@ int main(int argc, char *argv[])
 #endif
     } else {
         QSurfaceFormat format = QSurfaceFormat::defaultFormat();
+        format.setProfile(QSurfaceFormat::CoreProfile);
 
         bool force24bpp = settings.value("force24bpp", 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("forceTripleBuffer", forceTripleBuffer);
 
+        qDebug() << "Setting format" << format;
         QSurfaceFormat::setDefaultFormat(format);
     }