summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-02 14:16:54 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-02 15:14:37 +0200
commit13ec2cc562ce98a089b47dee2987b5e58a0384e2 (patch)
treec6bd87d529a39d48a727de09c0e1ececad8285f2 /src/mbgl/renderer
parentf13a8b0afa18f83321355563894549b4b014bcc2 (diff)
downloadqtlocation-mapboxgl-13ec2cc562ce98a089b47dee2987b5e58a0384e2.tar.gz
Revert "[core] Expose ColorMask in gl::Context::clear()"
This reverts commit e350ef37fe68312c4b5fb03b289a90c0bdda4f03.
Diffstat (limited to 'src/mbgl/renderer')
-rw-r--r--src/mbgl/renderer/renderer_impl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mbgl/renderer/renderer_impl.cpp b/src/mbgl/renderer/renderer_impl.cpp
index d7886ebe88..9ff5a3b6dd 100644
--- a/src/mbgl/renderer/renderer_impl.cpp
+++ b/src/mbgl/renderer/renderer_impl.cpp
@@ -443,9 +443,7 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
if (parameters.debugOptions & MapDebugOptions::Overdraw) {
parameters.context.clear(Color::black(), ClearDepth::Default, ClearStencil::Default);
} else if (parameters.contextMode == GLContextMode::Shared) {
- // Preserve the shared context background colors, clearing only alpha.
- optional<gl::ColorMode::Mask> mask = { { false, false, false, true } };
- parameters.context.clear(backgroundColor, ClearDepth::Default, ClearStencil::Default, mask);
+ parameters.context.clear({}, ClearDepth::Default, ClearStencil::Default);
} else {
parameters.context.clear(backgroundColor, ClearDepth::Default, ClearStencil::Default);
}