summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/state.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-09-27 15:12:19 -0700
committerKonstantin Käfer <mail@kkaefer.com>2016-09-28 10:54:48 +0200
commitaa0fc68fea8e7788d6e432ecc98395d7bdb2b540 (patch)
tree7f5cf070b753c3a59b2c7a61917bc60426408f13 /src/mbgl/gl/state.hpp
parent3835ed556b03a7246d238e1ee1a52f3aac29ec98 (diff)
downloadqtlocation-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.hpp4
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;
}