Browse Source

In the Window destructor, delete Fonts and Images from the cache before the NanoVG context is deleted.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
2aaa25020d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Window.cpp

+ 4
- 0
src/Window.cpp View File

@@ -350,6 +350,10 @@ Window::~Window() {
APP->scene->onContextDestroy(e);
}

// Fonts and Images in the cache must be deleted before the NanoVG context is deleted
internal->fontCache.clear();
internal->imageCache.clear();

// nvgDeleteClone(fbVg);

#if defined NANOVG_GL2


Loading…
Cancel
Save