Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/platform/guiqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,16 @@ int main(int argc, char** argv) {
// See https://bugreports.qt.io/browse/QTBUG-89812
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);

// Specify the GL version so Qt doesn't use GLES on Wayland, which
// doesn't handle "#version 120" shaders.
{
QSurfaceFormat fmt;
fmt.setRenderableType(QSurfaceFormat::OpenGL);
fmt.setVersion(3, 2);
fmt.setProfile(QSurfaceFormat::CoreProfile);
QSurfaceFormat::setDefaultFormat(fmt);
}

Platform::SSApplication app(argc, argv);
Platform::Open3DConnexion();
SS.Init();
Expand Down
Loading