Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit aebb7c1

Browse files
mpulkki-mapboxalexshalamov
authored andcommitted
Fix assert on gfx resource cleanup
1 parent 77466d2 commit aebb7c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mbgl/gl/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ Context::Context(RendererBackend& backend_)
6161
Context::~Context() {
6262
if (cleanupOnDestruction) {
6363
reset();
64+
assert(stats.isZero());
6465
}
65-
assert(stats.isZero());
6666
}
6767

6868
void Context::initializeExtensions(const std::function<gl::ProcAddress(const char*)>& getProcAddress) {

0 commit comments

Comments
 (0)