diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/gl/value.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gl/value.hpp b/src/mbgl/gl/value.hpp index 6296d64416..1f01d4e71a 100644 --- a/src/mbgl/gl/value.hpp +++ b/src/mbgl/gl/value.hpp @@ -183,6 +183,10 @@ constexpr bool operator!=(const Viewport::Type& a, const Viewport::Type& b) { return a.x != b.x || a.y != b.y || a.size != b.size; } +constexpr bool operator==(const Viewport::Type& a, const Viewport::Type& b) { + return !(a != b); +} + struct BindFramebuffer { using Type = FramebufferID; static const constexpr Type Default = 0; |