summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Pulkki <mikko.pulkki@mapbox.com>2020-03-30 14:51:14 +0300
committerMikko Pulkki <mikko.pulkki@mapbox.com>2020-03-30 14:51:14 +0300
commitbaa9ea7fd0ef3c4793fa1e7d75293bb41b9d5b4f (patch)
tree3e21e93932d100c3b55fce086e4320b9caed8e8e
parent488e5508959573b4b84a4f03afc7589503cd0af1 (diff)
downloadqtlocation-mapboxgl-upstream/mpulkki-fix-cleanup-assert.tar.gz
Fix assert on gfx resource cleanupupstream/mpulkki-fix-cleanup-assert
-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) {