From 87e6417353d8b2f485362650a56cac7f3f67334c Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 18 Nov 2013 12:14:51 +0100 Subject: [PATCH] Added hack detecting ARB_compatibility. --- src/context.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/context.c b/src/context.c index 5545278a..3bc86bc5 100644 --- a/src/context.c +++ b/src/context.c @@ -419,6 +419,14 @@ GLboolean _glfwRefreshContextAttribs(void) window->glProfile = GLFW_OPENGL_COMPAT_PROFILE; else if (mask & GL_CONTEXT_CORE_PROFILE_BIT) window->glProfile = GLFW_OPENGL_CORE_PROFILE; + else if (glfwExtensionSupported("GL_ARB_compatibility")) + { + // HACK: This is a workaround for the compatibility profile bit + // not being set in the context flags if an OpenGL 3.2+ + // context was created without having requested a specific + // version + window->glProfile = GLFW_OPENGL_COMPAT_PROFILE; + } } // Read back robustness strategy