summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-05-09 16:10:54 +0000
committerManolo Gouy <Manolo>2016-05-09 16:10:54 +0000
commitcc35e003eb62d088745b0108af6312885648dd2c (patch)
tree649935c724dd8a2f301fe5bc743f74221c81a88b /src/Fl_Gl_Window.cxx
parent2dacc9a1db09a72a46271e02fb2b329255e5bd47 (diff)
Move GL-related member functions from class Fl_Cocoa_Screen_Driver to class Fl_Cocoa_Gl_Window_Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
-rw-r--r--src/Fl_Gl_Window.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index 0cfdcb7c9..919b868de 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -505,7 +505,7 @@ void Fl_Cocoa_Gl_Window_Driver::make_current_before() {
if (d->changed_resolution()){
d->changed_resolution(false);
invalidate();
- Fl_Cocoa_Screen_Driver::GLcontext_update((GLContext)pWindow->context());
+ GLcontext_update((GLContext)pWindow->context());
}
}
@@ -549,15 +549,11 @@ void Fl_Cocoa_Gl_Window_Driver::swap_buffers() {
void Fl_Cocoa_Gl_Window_Driver::resize(int is_a_resize, int unused, int also) {
Fl_X *flx = Fl_X::i(pWindow);
Fl_Cocoa_Window_Driver *d = Fl_Cocoa_Window_Driver::driver(pWindow);
- if (flx && d->in_windowDidResize()) Fl_Cocoa_Screen_Driver::GLcontext_update((GLContext)pWindow->context());
+ if (flx && d->in_windowDidResize()) GLcontext_update((GLContext)pWindow->context());
}
char Fl_Cocoa_Gl_Window_Driver::swap_type() {return COPY;}
-void Fl_Cocoa_Gl_Window_Driver::flush_context() {
- Fl_Cocoa_Screen_Driver::GLcontext_flushbuffer((GLContext)pWindow->context());
-}
-
#endif // FL_CFG_GFX_QUARTZ
#if defined(FL_CFG_GFX_GDI)