knossos icon indicating copy to clipboard operation
knossos copied to clipboard

set default ogl format at program start

Open Optiligence opened this issue 7 years ago • 2 comments

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.

Optiligence avatar Mar 29 '17 22:03 Optiligence

It’s probably a good idea to request a higher OpenGL version than the functions require (i.e. for mesh picking see #393).

Optiligence avatar Mar 29 '17 22:03 Optiligence

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)

Optiligence avatar Aug 18 '17 18:08 Optiligence