diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-03 17:07:17 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-04-10 18:01:28 +0300 |
commit | e5aa4d70cd7b39302ddf1ec4df240a14accfb474 (patch) | |
tree | 8e8595f32fa4f30316e68f533ee4dd289adf11fb /src/mbgl/util/offscreen_texture.cpp | |
parent | 76edc6ee69ec9a8aaa0b0207aed06f257ff5fd83 (diff) | |
download | qtlocation-mapboxgl-e5aa4d70cd7b39302ddf1ec4df240a14accfb474.tar.gz |
[core] Updated Size::isEmpty and TransformState::valid checks
Diffstat (limited to 'src/mbgl/util/offscreen_texture.cpp')
-rw-r--r-- | src/mbgl/util/offscreen_texture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/offscreen_texture.cpp b/src/mbgl/util/offscreen_texture.cpp index cbe33c8d58..56ef60b15c 100644 --- a/src/mbgl/util/offscreen_texture.cpp +++ b/src/mbgl/util/offscreen_texture.cpp @@ -9,7 +9,7 @@ namespace mbgl { class OffscreenTexture::Impl { public: Impl(gl::Context& context_, const Size size_) : context(context_), size(std::move(size_)) { - assert(size); + assert(!size.isEmpty()); } void bind() { @@ -45,7 +45,7 @@ private: OffscreenTexture::OffscreenTexture(gl::Context& context, const Size size) : impl(std::make_unique<Impl>(context, std::move(size))) { - assert(size); + assert(!size.isEmpty()); } OffscreenTexture::~OffscreenTexture() = default; |