Mercurial > hg > octave-jordi
changeset 19455:dec5b96ca298
maint: Periodic merge of gui-release to default.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 01 Jan 2015 18:52:35 -0800 |
parents | 728873ccd637 (current diff) 17f5db3a9149 (diff) |
children | cb35d695713c |
files | libinterp/dldfcn/__init_fltk__.cc |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc +++ b/libinterp/dldfcn/__init_fltk__.cc @@ -857,7 +857,9 @@ void show_canvas (void) { - if (fp.is_visible ()) + if (! canvas->can_do ()) + error ("unable to plot due to insufficient OpenGL support"); + else if (fp.is_visible ()) { canvas->show (); canvas->make_current ();