knossos
knossos copied to clipboard
set default ogl format at program start
To prevent this warning:
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
move version setup of the default format from createViewports
before QApplication
creation.
Use this opportunity to figure out what the required baseline version really is.
Especially on Windows, which version of QOpenGLFunctions
is required (on linux there are more functions available by default) and what do the features (shaders) we are using require.
It’s probably a good idea to request a higher OpenGL version than the functions require (i.e. for mesh picking see #393).
how to handle the msaa value if the default format has to be set before qapp init, but qsettings can’t be used before that (i assume)