summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/texture_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/texture_pool.cpp')
-rw-r--r--src/mbgl/gl/texture_pool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/gl/texture_pool.cpp b/src/mbgl/gl/texture_pool.cpp
index c04f781daa..915e73f82a 100644
--- a/src/mbgl/gl/texture_pool.cpp
+++ b/src/mbgl/gl/texture_pool.cpp
@@ -25,10 +25,10 @@ GLuint TexturePool::getTextureID(gl::ObjectStore& store) {
void TexturePool::releaseTextureID(GLuint id) {
for (auto it = pools.begin(); it != pools.end(); ++it) {
- for (GLsizei i = 0; i < gl::TexturePoolHolder::TextureMax; ++i) {
- if (it->pool[i] == id) {
+ for (GLsizei i = 0; i < gl::TextureMax; ++i) {
+ if (it->pool.get()[i] == id) {
it->ids.push_back(id);
- if (GLsizei(it->ids.size()) == gl::TexturePoolHolder::TextureMax) {
+ if (GLsizei(it->ids.size()) == gl::TextureMax) {
pools.erase(it);
}
return;