summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/cocoa_common.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/cocoa_common.m b/libvo/cocoa_common.m
index 5b2bc9ab4e..581b5605ec 100644
--- a/libvo/cocoa_common.m
+++ b/libvo/cocoa_common.m
@@ -250,6 +250,11 @@ int vo_cocoa_create_window(struct vo *vo, uint32_t d_width,
if (is_lion_or_better()) {
attr[i++] = NSOpenGLPFAOpenGLProfile;
attr[i++] = (gl3profile ? NSOpenGLProfileVersion3_2Core : NSOpenGLProfileVersionLegacy);
+ } else if(gl3profile) {
+ mp_msg(MSGT_VO, MSGL_ERR,
+ "[cocoa] Invalid pixel format attribute "
+ "(GL3 is not supported on OSX versions prior to 10.7)\n");
+ return -1;
}
attr[i++] = NSOpenGLPFADoubleBuffer; // double buffered
attr[i++] = NSOpenGLPFADepthSize;