summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-28 16:19:33 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-01 09:33:37 +0100
commitda6e1390c68e01e02652104586c759d46e04c7fd (patch)
tree002942c69e886a2ad86ac7bea8272d36a16c28e2 /src/mbgl/gl/context.cpp
parentfd37d9065029c732d97e6fa59bc0a0d27ecd3c72 (diff)
downloadqtlocation-mapboxgl-da6e1390c68e01e02652104586c759d46e04c7fd.tar.gz
[core] move ColorMode to gfx namespace
Diffstat (limited to 'src/mbgl/gl/context.cpp')
-rw-r--r--src/mbgl/gl/context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp
index 64365a1018..ee82fa76ae 100644
--- a/src/mbgl/gl/context.cpp
+++ b/src/mbgl/gl/context.cpp
@@ -728,14 +728,14 @@ void Context::setStencilMode(const StencilMode& stencil) {
}
}
-void Context::setColorMode(const ColorMode& color) {
- if (color.blendFunction.is<ColorMode::Replace>()) {
+void Context::setColorMode(const gfx::ColorMode& color) {
+ if (color.blendFunction.is<gfx::ColorMode::Replace>()) {
blend = false;
} else {
blend = true;
blendColor = color.blendColor;
apply_visitor([&] (const auto& blendFunction) {
- blendEquation = ColorMode::BlendEquation(blendFunction.equation);
+ blendEquation = gfx::ColorMode::BlendEquation(blendFunction.equation);
blendFunc = { blendFunction.srcFactor, blendFunction.dstFactor };
}, color.blendFunction);
}