summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-15 00:00:38 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-15 00:02:50 +0200
commit0b48025baf41ab58f7fd174d2cda856e0aa5d5ea (patch)
tree6e5f35c09e95cdaec8f11d80ce0418b35c661879 /vcl
parentae1c06be2920043f74b5713c1efd573e54e0460a (diff)
seems like the better approach for getting it working
Change-Id: I18d5ecc9a14a6eb8ad8c6ea5ec9835dbe8f5db40
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 12b3f7c1fc9a..707b0d846c5a 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -475,12 +475,8 @@ bool OpenGLContext::ImplInit()
#elif defined( MACOSX )
CGLPixelFormatAttribute pixelFormatAttributes[] = {
-#ifdef kCGLPFAOpenGLProfile // Available in OS X 10.7 and later
+#if MACOSX_SDK_VERSION > 1060
kCGLPFAOpenGLProfile, (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core,
-#else
- // Will we then get run-time error on OS X < 10.7? Why can't
- // we just require building against the 10.9 SDK or later, and
- // running on 10.7 at least.
#endif
kCGLPFAColorSize, (CGLPixelFormatAttribute) 24,
kCGLPFAAlphaSize, (CGLPixelFormatAttribute) 8,