From a3a93054289cf8fb17127028999e02356a8c5927 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 10 Mar 2010 22:36:23 +0000 Subject: [PATCH] Removed one more OS X warning about deprecates function. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Gl_Choice.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index a831eb4b6..88ed16d1c 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -380,7 +380,11 @@ void fl_no_gl_context() { # 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