diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-09-27 15:12:19 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-09-28 10:54:48 +0200 |
commit | aa0fc68fea8e7788d6e432ecc98395d7bdb2b540 (patch) | |
tree | 7f5cf070b753c3a59b2c7a61917bc60426408f13 /src/mbgl/gl/state.hpp | |
parent | 3835ed556b03a7246d238e1ee1a52f3aac29ec98 (diff) | |
download | qtlocation-mapboxgl-aa0fc68fea8e7788d6e432ecc98395d7bdb2b540.tar.gz |
[core] Mark tracked state as dirty when the tracked object is destroyed
Diffstat (limited to 'src/mbgl/gl/state.hpp')
-rw-r--r-- | src/mbgl/gl/state.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gl/state.hpp b/src/mbgl/gl/state.hpp index c7a7d74c63..dbb005e77d 100644 --- a/src/mbgl/gl/state.hpp +++ b/src/mbgl/gl/state.hpp @@ -41,6 +41,10 @@ public: } } + bool operator==(const typename T::Type& value) const { + return !(*this != value); + } + bool operator!=(const typename T::Type& value) const { return dirty || currentValue != value; } |