diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-07-29 11:21:38 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-07-29 11:21:38 +0300 |
commit | e9c5022580f14c0ca97503f8b3cc56b530fff174 (patch) | |
tree | 4dec20c01c2d24c08a0ce22a1b8e0ab8c24ed6bf /vcl/source | |
parent | 7dc96ebc05014b787d79a282981cdd0f8750abad (diff) |
Blind fix attempt for compiling against the 10.6 SDK
Change-Id: I0ee5f4f709aa521d85974ebb6518d8f2bce3f513
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 6 |
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, |