diff options
author | Mikko Pulkki <mikko.pulkki@mapbox.com> | 2019-10-15 12:09:21 +0300 |
---|---|---|
committer | Mikko Pulkki <55925868+mpulkki-mapbox@users.noreply.github.com> | 2019-10-30 14:32:27 +0200 |
commit | fb062bb23e66af3d5a889b767aae380884b259e5 (patch) | |
tree | 4cb52d0a85e5eebbef4a340dce767c938e6052fa /src/mbgl/gl/object.cpp | |
parent | c8576e089f12438a2384a4fe822af650e94ace74 (diff) | |
download | qtlocation-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.cpp | 2 |
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 { |