diff options
| author | Manolo Gouy <Manolo> | 2015-02-03 07:48:42 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-02-03 07:48:42 +0000 |
| commit | f3cd33bb917a3405842a01fcf87244012226645e (patch) | |
| tree | 83b3d1e4c1e38b47e818592b54a4c213a45b3112 /src/Fl_Gl_Window.cxx | |
| parent | eebda637fae8559d69d1d80818288abf407c7dc9 (diff) | |
Fixed crash when resizing a not yet shown() Fl_Gl_Window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
| -rw-r--r-- | src/Fl_Gl_Window.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 88963b2b6..36b7c48a9 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -434,7 +434,8 @@ void Fl_Gl_Window::resize(int X,int Y,int W,int H) { if (is_a_resize) valid(0); #ifdef __APPLE__ - if (Fl_X::i(this)->in_windowDidResize()) Fl_X::GLcontext_update(context_); + Fl_X *flx = Fl_X::i(this); + if (flx && flx->in_windowDidResize()) Fl_X::GLcontext_update(context_); #endif #if ! ( defined(__APPLE__) || defined(WIN32) ) |
