fix(editor): use OpenGL 3.3
This commit is contained in:
parent
2fec4cc7f2
commit
62743d8998
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QSurfaceFormat format;
|
QSurfaceFormat format;
|
||||||
format.setSamples(4);
|
format.setSamples(4);
|
||||||
// TODO: This is broken for some reason on Linux, Qt refuses to use any version newer than 3.2. Figure out why
|
format.setRenderableType(QSurfaceFormat::OpenGL);
|
||||||
// format.setVersion(3, 3);
|
format.setVersion(3, 3);
|
||||||
format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
|
||||||
QSurfaceFormat::setDefaultFormat(format);
|
QSurfaceFormat::setDefaultFormat(format);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue