diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-02 19:44:28 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-03 11:03:16 +0300 |
commit | 679a68078c1dfdf7c0bf1cbac6d0ab82d052e38b (patch) | |
tree | 2fc19fcf7f9b23f3cbc1348928afe4441ad471bc /src/mbgl/util/raster.cpp | |
parent | 61dad6eae59e284fdba63fcd76d9192aba900db4 (diff) | |
download | qtlocation-mapboxgl-679a68078c1dfdf7c0bf1cbac6d0ab82d052e38b.tar.gz |
[core] Refresh Texture Pool logic
Take advantage of mbgl::gl::ObjectPool being iterable, and also let
TexturePool update the texture ID value when releasing.
Diffstat (limited to 'src/mbgl/util/raster.cpp')
-rw-r--r-- | src/mbgl/util/raster.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mbgl/util/raster.cpp b/src/mbgl/util/raster.cpp index 4a57909a08..70fdf7b02a 100644 --- a/src/mbgl/util/raster.cpp +++ b/src/mbgl/util/raster.cpp @@ -16,7 +16,6 @@ Raster::Raster(gl::TexturePool& texturePool_) Raster::~Raster() { if (textured) { texturePool.releaseTextureID(textureID); - textureID = 0; } } |