summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-10-29 15:49:15 +0000
committerManolo Gouy <Manolo>2018-10-29 15:49:15 +0000
commitac60de1a923919f1d277a5e691b521c08d98be59 (patch)
treebdd671da96a36dfff33c08e771a8f0c27397c5e1 /src
parent61eb23a9ea106e82e3fd0649e68859cb6e950e0f (diff)
Fix error in Fl_Cocoa_Gl_Window_Driver::make_current_before()
Fl_Gl_Window_Driver::invalidate() instead of Fl_Gl_Window::invalidate() was called. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Gl_Window.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index 2835f129d..938a0dc5f 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -557,8 +557,7 @@ void Fl_Cocoa_Gl_Window_Driver::make_current_before() {
Fl_Cocoa_Window_Driver *d = Fl_Cocoa_Window_Driver::driver(pWindow);
if (d->changed_resolution()){
d->changed_resolution(false);
- invalidate();
- pWindow->valid(0);
+ pWindow->invalidate();
GLcontext_update(pWindow->context());
}
}