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) {