summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Pulkki <mikko.pulkki@mapbox.com>2020-03-30 14:51:14 +0300
committerMikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com>2020-03-30 18:01:39 +0300
commita6ba6c0e85736dba1cd1e6083a29cc452c95cc10 (patch)
tree3e21e93932d100c3b55fce086e4320b9caed8e8e
parent488e5508959573b4b84a4f03afc7589503cd0af1 (diff)
downloadqtlocation-mapboxgl-a6ba6c0e85736dba1cd1e6083a29cc452c95cc10.tar.gz
Fix assert on gfx resource cleanup
-rw-r--r--src/mbgl/gl/context.cpp2
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) {