From 9f78323574ce8fbbcbf491980fdc9629b83a018a Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 19 Apr 2016 16:58:17 +0000 Subject: 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 --- src/gl_start.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gl_start.cxx') 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 -- cgit v1.2.3