diff options
| author | Manolo Gouy <Manolo> | 2011-01-03 20:51:17 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-03 20:51:17 +0000 |
| commit | d4d4a24eff2fdba0a1a3744c31962f88ffca5db4 (patch) | |
| tree | 8886ff741907e712548e307bb29c81532190f277 /src/Fl_Gl_Choice.cxx | |
| parent | 523a2ed9b7792458da6ed7c26b4b70e4f90bb0b2 (diff) | |
Fixed warning in Fl_Gl_Choice.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
| -rw-r--r-- | src/Fl_Gl_Choice.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index df6267650..5343bf45c 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -296,6 +296,7 @@ GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int lay } # elif defined(__APPLE_QUARTZ__) +#if !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 && __LP64__) static CGrafPtr fl_GetWindowPort(WindowRef window) { typedef CGrafPtr (*wf)(WindowRef); @@ -303,6 +304,7 @@ static CGrafPtr fl_GetWindowPort(WindowRef window) if ( ! f) f = (wf)Fl_X::get_carbon_function("GetWindowPort"); return (*f)(window); } +#endif // warning: the Quartz version should probably use Core GL (CGL) instead of AGL GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int layer) { |
