From 0b01d850ed00abf65ede29da46ad28ca5dbf8081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Sun, 19 May 2019 20:51:50 +0200 Subject: [PATCH] NSGL: Remove enforcement of forward-compatible flag This sharp corner should have been addressed a long time ago. --- README.md | 1 + src/nsgl_context.m | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 920a0709..fc5af9d0 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ information on what to include when reporting a bug. - Bugfix: The CMake config-file package used an absolute path and was not relocatable (#1470) - [X11] Bugfix: The CMake files did not check for the XInput headers (#1480) + - [NSGL] Removed enforcement of forward-compatible flag for core contexts ## Contact diff --git a/src/nsgl_context.m b/src/nsgl_context.m index 0bfeca2d..b55dd6d6 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -194,13 +194,6 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, "NSGL: The targeted version of macOS does not support OpenGL 3.0 or 3.1 but may support 3.2 and above"); return GLFW_FALSE; } - - if (!ctxconfig->forward || ctxconfig->profile != GLFW_OPENGL_CORE_PROFILE) - { - _glfwInputError(GLFW_VERSION_UNAVAILABLE, - "NSGL: The targeted version of macOS only supports forward-compatible core profile contexts for OpenGL 3.2 and above"); - return GLFW_FALSE; - } } // Context robustness modes (GL_KHR_robustness) are not yet supported by