diff options
| author | Manolo Gouy <Manolo> | 2016-04-19 16:58:17 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-19 16:58:17 +0000 |
| commit | 9f78323574ce8fbbcbf491980fdc9629b83a018a (patch) | |
| tree | ac33378cddf4b1a0140f664afb223ac40c410bdd /src/Fl_Gl_Window.cxx | |
| parent | f29fb8c539a691fb798d2da6ad798c767e1076cd (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/Fl_Gl_Window.cxx')
| -rw-r--r-- | src/Fl_Gl_Window.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 0078c089b..acd790e7b 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -31,6 +31,7 @@ extern int fl_gl_load_plugin; #include <FL/gl.h> #include <OpenGL/OpenGL.h> #include "drivers/Cocoa/Fl_Cocoa_Window_Driver.H" +#include "drivers/Cocoa/Fl_Cocoa_Screen_Driver.H" #endif #include <FL/Fl_Gl_Window.H> #include <FL/Fl_Device.H> @@ -201,7 +202,7 @@ void Fl_Gl_Window::make_current() { if (d->changed_resolution()){ d->changed_resolution(false); invalidate(); - Fl_X::GLcontext_update(context_); + Fl_Cocoa_Screen_Driver::GLcontext_update(context_); } #endif if (!context_) { @@ -411,7 +412,7 @@ void Fl_Gl_Window::flush() { } #ifdef __APPLE__ // PORTME: platform OpenGL management - Fl_X::GLcontext_flushbuffer(context_); + Fl_Cocoa_Screen_Driver::GLcontext_flushbuffer(context_); #endif if (overlay==this && SWAP_TYPE != SWAP) { // fake overlay in front buffer @@ -443,7 +444,7 @@ void Fl_Gl_Window::resize(int X,int Y,int W,int H) { #ifdef __APPLE__ // PORTME: platform OpenGL management Fl_X *flx = Fl_X::i(this); Fl_Cocoa_Window_Driver *d = (Fl_Cocoa_Window_Driver*)driver(); - if (flx && d->in_windowDidResize()) Fl_X::GLcontext_update(context_); + if (flx && d->in_windowDidResize()) Fl_Cocoa_Screen_Driver::GLcontext_update(context_); #endif #if ! ( defined(__APPLE__) || defined(WIN32) ) // PORTME: platform OpenGL management |
