From baa8df38f6cc6fcd73b8566e496e482083da17e5 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 21 Apr 2020 02:49:17 +1000 Subject: [PATCH] opengl: use compatibility profile The GLSL shaders are written in GLSL 1.10 even though the OpenGL standard is set to OpenGL ES 3.2 Core. Many platforms allow this but some platforms don't. For standards compliance, it's probably a good idea in the future to upgrade the shaders to 3.2, but for now we'll use 3.2 Compatibility which will allow the GLSL 1.10 shaders to compile. --- app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index e472c79d7..020f594e0 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) { QSurfaceFormat format; format.setVersion(3, 2); format.setDepthBufferSize(24); - format.setProfile(QSurfaceFormat::CoreProfile); + format.setProfile(QSurfaceFormat::CompatibilityProfile); QSurfaceFormat::setDefaultFormat(format); // Try to share OpenGL contexts