diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-05-25 23:56:52 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-05-26 19:36:52 +0300 |
commit | c111250fcccaf5e57154852606ee740f0db242c1 (patch) | |
tree | 82636cda8fa90be2c0e760daf806d5226331c5e0 /src/mbgl/geometry/line_atlas.cpp | |
parent | b2b2797c2a30b8085683935d760c45284c639e96 (diff) | |
download | qtlocation-mapboxgl-c111250fcccaf5e57154852606ee740f0db242c1.tar.gz |
[core] s/operator bool/created()/ in {GL,TexturePool}Holder
Prevents confusing usage of GL holder objects.
Diffstat (limited to 'src/mbgl/geometry/line_atlas.cpp')
-rw-r--r-- | src/mbgl/geometry/line_atlas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/geometry/line_atlas.cpp b/src/mbgl/geometry/line_atlas.cpp index 1213b8d778..614e3280c7 100644 --- a/src/mbgl/geometry/line_atlas.cpp +++ b/src/mbgl/geometry/line_atlas.cpp @@ -129,7 +129,7 @@ void LineAtlas::upload(gl::GLObjectStore& glObjectStore) { void LineAtlas::bind(gl::GLObjectStore& glObjectStore) { bool first = false; - if (!texture) { + if (!texture.created()) { texture.create(glObjectStore); MBGL_CHECK_ERROR(glBindTexture(GL_TEXTURE_2D, texture.getID())); MBGL_CHECK_ERROR(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); |