Remove unnecessary local variable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2017-07-20 09:25:49 +00:00
parent e1972d2868
commit ae2cc54519

View File

@ -2845,16 +2845,16 @@ void Fl_Cocoa_Gl_Window_Driver::GLcontext_makecurrent(NSOpenGLContext* ctxt)
*/
void Fl_Cocoa_Window_Driver::flush()
{
Fl_Window *w = pWindow;
if (w->as_gl_window()) {
if (pWindow->as_gl_window()) {
Fl_Window_Driver::flush();
} else {
make_current_counts = 1;
if (!through_drawRect) [[fl_xid(w) contentView] lockFocus];
NSView *view = (through_drawRect ? nil : [fl_xid(pWindow) contentView]);
[view lockFocus];
through_Fl_X_flush = YES;
Fl_Window_Driver::flush();
through_Fl_X_flush = NO;
if (!through_drawRect) [[fl_xid(w) contentView] unlockFocus];
[view unlockFocus];
make_current_counts = 0;
Fl_Cocoa_Window_Driver::q_release_context();
}