Author: matt
Date: 2010-03-10 14:36:23 -0800 (Wed, 10 Mar 2010)
New Revision: 7239
Log:
Removed one more OS X warning about deprecates function.

Modified:
   branches/branch-1.3/src/Fl_Gl_Choice.cxx

Modified: branches/branch-1.3/src/Fl_Gl_Choice.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Gl_Choice.cxx    2010-03-10 22:12:20 UTC (rev 
7238)
+++ branches/branch-1.3/src/Fl_Gl_Choice.cxx    2010-03-10 22:36:23 UTC (rev 
7239)
@@ -380,7 +380,11 @@
 #  elif defined(__APPLE_QUARTZ__)
   // warning: the Quartz version should probably use Core GL (CGL) instead of 
AGL
   AGLContext ctx = aglGetCurrentContext();
+#   if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+  if (ctx) aglSetWindowRef(ctx, NULL);
+#    else
   if (ctx) aglSetDrawable(ctx, NULL);
+#    endif
   aglSetCurrentContext(0);
 #  else
 #    error unsupported platform

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to