From 9038d66af60bca616d0f34cda593409daa06271c Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Sat, 18 Jun 2016 12:03:19 +0300 Subject: [PATCH] [core] Added missing BlendFunc operator --- include/mbgl/gl/gl_values.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbgl/gl/gl_values.hpp b/include/mbgl/gl/gl_values.hpp index 03ae46a60..34932dd40 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;