Ticket #67408: gtk3_gdk_gdkglcontext-quartz_c.diff

File gtk3_gdk_gdkglcontext-quartz_c.diff, 456 bytes (added by rmottola (Riccardo), 9 months ago)

ignore 10.7+ format attribute if not supported

  • gdk/quartz/gdkglcontext-quartz.c

    old new  
    107107  NSOpenGLContext *ctx;
    108108  NSOpenGLPixelFormatAttribute attrs[] =
    109109    {
     110#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
    110111      NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
     112#endif
    111113      NSOpenGLPFADoubleBuffer,
    112114      NSOpenGLPFAColorSize, 24,
    113115      NSOpenGLPFAAlphaSize, 8,