From 222f1d560053e11d85a5ee7bca6d271bcac3fd93 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 Mar 2011 18:55:20 +0100 Subject: [PATCH] Added the usual punt on Mac OS X. --- src/cocoa/cocoa_window.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cocoa/cocoa_window.m b/src/cocoa/cocoa_window.m index 974dbdbc..b6c97fbd 100644 --- a/src/cocoa/cocoa_window.m +++ b/src/cocoa/cocoa_window.m @@ -479,6 +479,13 @@ int _glfwPlatformOpenWindow(_GLFWwindow* window, return GL_FALSE; } + // Fail if a robustness strategy was requested + if (wndconfig->glRobustness) + { + _glfwSetError(GLFW_VERSION_UNAVAILABLE, "Cocoa/NSOpenGL: Mac OS X does not support OpenGL robustness strategies"); + return GL_FALSE; + } + // We can only have one application delegate, but we only allocate it the // first time we create a window to keep all window code in this file if (_glfwLibrary.NS.delegate == nil)