diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-20 03:37:37 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-20 03:37:37 +0100 |
commit | b726255007bfdafb29c547bafd71bbe32d11f58e (patch) | |
tree | a6b3cb5ffa0e60b9b8e4194eb857f365c538133e /libs | |
parent | 5fe355af9280acc5f721d956f76bff8d76d31649 (diff) |
Fix OSX canvas when used without openGL NSView
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/canvas.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index 52bff497af..cdd2fbfeee 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -772,7 +772,9 @@ GtkCanvas::on_realize () { Gtk::EventBox::on_realize(); #ifdef __APPLE__ - nsglview_overlay (_nsglview, get_window()->gobj()); + if (_nsglview) { + nsglview_overlay (_nsglview, get_window()->gobj()); + } #endif } |