fix(editor): use OpenGL 3.3

This commit is contained in:
maelstrom 2025-08-12 00:35:10 +02:00
parent 2fec4cc7f2
commit 62743d8998

View file

@ -14,8 +14,8 @@ int main(int argc, char *argv[])
{
QSurfaceFormat format;
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.setVersion(3, 3);
format.setRenderableType(QSurfaceFormat::OpenGL);
format.setVersion(3, 3);
format.setProfile(QSurfaceFormat::CompatibilityProfile); // Valid only in OpenGL 3.2+, see: https://stackoverflow.com/a/70519392/16255372
QSurfaceFormat::setDefaultFormat(format);