summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/color_mode.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/color_mode.hpp')
-rw-r--r--src/mbgl/gl/color_mode.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gl/color_mode.hpp b/src/mbgl/gl/color_mode.hpp
index e73c8737eb..171eb38f9b 100644
--- a/src/mbgl/gl/color_mode.hpp
+++ b/src/mbgl/gl/color_mode.hpp
@@ -85,6 +85,10 @@ public:
static ColorMode alphaBlended() {
return ColorMode { Add { One, OneMinusSrcAlpha }, {}, { true, true, true, true } };
}
+
+ static ColorMode additive() {
+ return ColorMode { Add { One, One }, {}, { true, true, true, true } };
+ }
};
constexpr bool operator!=(const ColorMode::Mask& a, const ColorMode::Mask& b) {