diff --git a/src/window/Window.cpp b/src/window/Window.cpp index 164db77b..fd8850bf 100644 --- a/src/window/Window.cpp +++ b/src/window/Window.cpp @@ -358,6 +358,7 @@ Window::Window() { if (APP->scene) { widget::Widget::ContextCreateEvent e; + e.vg = vg; APP->scene->onContextCreate(e); } } @@ -366,6 +367,7 @@ Window::Window() { Window::~Window() { if (APP->scene) { widget::Widget::ContextDestroyEvent e; + e.vg = vg; APP->scene->onContextDestroy(e); }