diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-05-25 23:56:52 +0300 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2016-05-27 10:41:34 -0500 |
commit | c6f22df8e57182d0671eb85481f46fc81e95d275 (patch) | |
tree | e6b5e0db48adac8973e17f4dcfae29307e2f5253 /src/mbgl/sprite | |
parent | af34481e6b5d14ee3966bd011e3a7f4095bde162 (diff) | |
download | qtlocation-mapboxgl-c6f22df8e57182d0671eb85481f46fc81e95d275.tar.gz |
[core] s/operator bool/created()/ in {GL,TexturePool}Holder
Prevents confusing usage of GL holder objects.
Diffstat (limited to 'src/mbgl/sprite')
-rw-r--r-- | src/mbgl/sprite/sprite_atlas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/sprite/sprite_atlas.cpp b/src/mbgl/sprite/sprite_atlas.cpp index 26777abc82..6595d7137d 100644 --- a/src/mbgl/sprite/sprite_atlas.cpp +++ b/src/mbgl/sprite/sprite_atlas.cpp @@ -184,7 +184,7 @@ void SpriteAtlas::bind(bool linear, gl::GLObjectStore& glObjectStore) { return; // Empty atlas } - if (!texture) { + if (!texture.created()) { texture.create(glObjectStore); MBGL_CHECK_ERROR(glBindTexture(GL_TEXTURE_2D, texture.getID())); #ifndef GL_ES_VERSION_2_0 |