summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-07-29 11:21:38 +0300
committerTor Lillqvist <tml@collabora.com>2014-07-29 11:21:38 +0300
commite9c5022580f14c0ca97503f8b3cc56b530fff174 (patch)
tree4dec20c01c2d24c08a0ce22a1b8e0ab8c24ed6bf
parent7dc96ebc05014b787d79a282981cdd0f8750abad (diff)
Blind fix attempt for compiling against the 10.6 SDK
Change-Id: I0ee5f4f709aa521d85974ebb6518d8f2bce3f513
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index ee916bb56687..c17bcac11c6d 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -475,7 +475,13 @@ bool OpenGLContext::ImplInit()
#elif defined( MACOSX )
CGLPixelFormatAttribute pixelFormatAttributes[] = {
+#ifdef kCGLPFAOpenGLProfile // Available in OS X 10.7 and later
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,
kCGLPFADoubleBuffer,