summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-15 13:22:00 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-15 13:22:00 -0700
commita020e535cac36d69a8939fb7956260d2217c65b4 (patch)
tree7acef00fd8aa1e85dae8ff5491e40f42659b5fd6 /src/mbgl/renderer/painter.cpp
parentd48333f26d9111d8f4f8420b477c36cece0d14a5 (diff)
downloadqtlocation-mapboxgl-a020e535cac36d69a8939fb7956260d2217c65b4.tar.gz
[core] Add a few conveniences to Color
Diffstat (limited to 'src/mbgl/renderer/painter.cpp')
-rw-r--r--src/mbgl/renderer/painter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/renderer/painter.cpp b/src/mbgl/renderer/painter.cpp
index 5f90140eb7..eee568ec92 100644
--- a/src/mbgl/renderer/painter.cpp
+++ b/src/mbgl/renderer/painter.cpp
@@ -144,9 +144,9 @@ void Painter::render(const Style& style, const FrameData& frame_, SpriteAtlas& a
config.depthMask = GL_TRUE;
config.colorMask = { GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE };
if (frame.debugOptions & MapDebugOptions::Wireframe) {
- config.clearColor = { 0.0f, 0.0f, 0.0f, 1.0f };
+ config.clearColor = Color::black();
} else {
- config.clearColor = { background.r, background.g, background.b, background.a };
+ config.clearColor = background;
}
config.clearStencil = 0;
config.clearDepth = 1;