summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/object.cpp
diff options
context:
space:
mode:
authorMikko Pulkki <mikko.pulkki@mapbox.com>2019-10-15 12:09:21 +0300
committerMikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com>2019-10-30 14:32:27 +0200
commitfb062bb23e66af3d5a889b767aae380884b259e5 (patch)
tree4cb52d0a85e5eebbef4a340dce767c938e6052fa /src/mbgl/gl/object.cpp
parentc8576e089f12438a2384a4fe822af650e94ace74 (diff)
downloadqtlocation-mapboxgl-fb062bb23e66af3d5a889b767aae380884b259e5.tar.gz
[render-test] Add resource usage tracking to gfx context
Diffstat (limited to 'src/mbgl/gl/object.cpp')
-rw-r--r--src/mbgl/gl/object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gl/object.cpp b/src/mbgl/gl/object.cpp
index ec2998a27d..c075aa8f13 100644
--- a/src/mbgl/gl/object.cpp
+++ b/src/mbgl/gl/object.cpp
@@ -28,6 +28,8 @@ void TextureDeleter::operator()(TextureID id) const {
} else {
context->pooledTextures.push_back(id);
}
+ context->renderingStats().numActiveTextures--;
+ assert(context->renderingStats().numActiveTextures >= 0);
}
void VertexArrayDeleter::operator()(VertexArrayID id) const {