13
0

Fix OSX canvas when used without openGL NSView

This commit is contained in:
Robin Gareus 2017-03-20 03:37:37 +01:00
parent 5fe355af92
commit b726255007

View File

@ -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
}