From baa9ea7fd0ef3c4793fa1e7d75293bb41b9d5b4f Mon Sep 17 00:00:00 2001 From: Mikko Pulkki Date: Mon, 30 Mar 2020 14:51:14 +0300 Subject: 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 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& getProcAddress) { -- cgit v1.2.1