summaryrefslogtreecommitdiff
path: root/include/mbgl/gl/gl_values.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/gl/gl_values.hpp')
-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 1e05984fbc..b15ef18f48 100644
--- a/include/mbgl/gl/gl_values.hpp
+++ b/include/mbgl/gl/gl_values.hpp
@@ -140,6 +140,10 @@ struct StencilOp {
}
};
+constexpr bool operator!=(const StencilOp::Type& a, const StencilOp::Type& b) {
+ return a.sfail != b.sfail || a.dpfail != b.dpfail || a.dppass != b.dppass;
+}
+
struct DepthRange {
struct Type { GLfloat near, far; };
static const Type Default;