From 62743d8998510814cf48019711d54f0da5300cdb Mon Sep 17 00:00:00 2001 From: maelstrom Date: Tue, 12 Aug 2025 00:35:10 +0200 Subject: [PATCH] fix(editor): use OpenGL 3.3 --- editor/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/main.cpp b/editor/main.cpp index 467148b..2097afa 100644 --- a/editor/main.cpp +++ b/editor/main.cpp @@ -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);