Fix OSX canvas when used without openGL NSView
This commit is contained in:
parent
5fe355af92
commit
b726255007
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user