diff options
author | Mikko Pulkki <mikko.pulkki@mapbox.com> | 2020-03-30 14:51:14 +0300 |
---|---|---|
committer | Mikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com> | 2020-03-30 18:01:39 +0300 |
commit | a6ba6c0e85736dba1cd1e6083a29cc452c95cc10 (patch) | |
tree | 3e21e93932d100c3b55fce086e4320b9caed8e8e | |
parent | 488e5508959573b4b84a4f03afc7589503cd0af1 (diff) | |
download | qtlocation-mapboxgl-a6ba6c0e85736dba1cd1e6083a29cc452c95cc10.tar.gz |
Fix assert on gfx resource cleanup
-rw-r--r-- | src/mbgl/gl/context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index fc51dc859b..9c7898cc1d 100644 --- a/src/mbgl/gl/context.cpp +++ b/src/mbgl/gl/context.cpp @@ -61,8 +61,8 @@ Context::Context(RendererBackend& backend_) Context::~Context() { if (cleanupOnDestruction) { reset(); + assert(stats.isZero()); } - assert(stats.isZero()); } void Context::initializeExtensions(const std::function<gl::ProcAddress(const char*)>& getProcAddress) { |