Browse Source

Set vg in ContextCreateEvent and ContextDestroyEvent when constructing and destructing Window.

tags/v2.4.0
Andrew Belt 1 year ago
parent
commit
9ee126d76b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/window/Window.cpp

+ 2
- 0
src/window/Window.cpp View File

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



Loading…
Cancel
Save