From a6ba6c0e85736dba1cd1e6083a29cc452c95cc10 Mon Sep 17 00:00:00 2001 From: Mikko Pulkki Date: Mon, 30 Mar 2020 14:51:14 +0300 Subject: [PATCH] Fix assert on gfx resource cleanup --- src/mbgl/gl/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp index fc51dc859..9c7898cc1 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& getProcAddress) {