diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-03-10 22:36:23 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-03-10 22:36:23 +0000 |
| commit | a3a93054289cf8fb17127028999e02356a8c5927 (patch) | |
| tree | 5c03fe53e425baa415495f830acb339fca604eb3 /src/Fl_Gl_Choice.cxx | |
| parent | 7499728266922099e810a10ae3dfc074c9ba6fba (diff) | |
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
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
| -rw-r--r-- | src/Fl_Gl_Choice.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
