summaryrefslogtreecommitdiff
path: root/src/gl_start.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-19 16:58:17 +0000
committerManolo Gouy <Manolo>2016-04-19 16:58:17 +0000
commit9f78323574ce8fbbcbf491980fdc9629b83a018a (patch)
treeac33378cddf4b1a0140f664afb223ac40c410bdd /src/gl_start.cxx
parentf29fb8c539a691fb798d2da6ad798c767e1076cd (diff)
Move GL-related static member functions of the Fl_X class on Mac OS to class Fl_Cocoa_Screen_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/gl_start.cxx')
-rw-r--r--src/gl_start.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gl_start.cxx b/src/gl_start.cxx
index bfb50e3ce..a9da93f73 100644
--- a/src/gl_start.cxx
+++ b/src/gl_start.cxx
@@ -28,7 +28,9 @@
// be erased when the buffers are swapped (when double buffer hardware
// is being used)
-#if defined(WIN32) || defined(__APPLE__) // PORTME: platform opengl
+#if defined(WIN32) // PORTME: platform opengl
+#elif defined(__APPLE__)
+#include "drivers/Cocoa/Fl_Cocoa_Screen_Driver.H"
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: if possible, add OpenGL rendering in non-OpenGL contexts"
#else
@@ -72,7 +74,7 @@ void gl_start() {
}
fl_set_gl_context(Fl_Window::current(), context);
#ifdef __APPLE__
- Fl_X::GLcontext_update(context); // supports window resizing
+ Fl_Cocoa_Screen_Driver::GLcontext_update(context); // supports window resizing
#elif !defined(WIN32)
glXWaitX();
#endif