summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-18 12:03:19 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-20 13:24:20 +0300
commit9038d66af60bca616d0f34cda593409daa06271c (patch)
tree5d37994a378c12f6e2caebf8e49a9c9d7c4460d6 /include
parent76fc07c606fa62fefc1e2aa435a51a8b5fd384cd (diff)
downloadqtlocation-mapboxgl-9038d66af60bca616d0f34cda593409daa06271c.tar.gz
[core] Added missing BlendFunc operator
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/gl/gl_values.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/gl/gl_values.hpp b/include/mbgl/gl/gl_values.hpp
index 03ae46a60e..34932dd408 100644
--- a/include/mbgl/gl/gl_values.hpp
+++ b/include/mbgl/gl/gl_values.hpp
@@ -210,6 +210,10 @@ struct BlendFunc {
}
};
+constexpr bool operator!=(const BlendFunc::Type& a, const BlendFunc::Type& b) {
+ return a.sfactor != b.sfactor || a.dfactor != b.dfactor;
+}
+
struct Program {
using Type = GLuint;
static const Type Default;