[core] Expose ColorMask in gl::Context::clear()

This commit is contained in:
Bruno de Oliveira Abinader
2017-10-31 15:19:10 +02:00
parent 388610d6aa
commit e350ef37fe
3 changed files with 10 additions and 7 deletions

View File

@@ -437,10 +437,7 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
MBGL_DEBUG_GROUP(parameters.context, "clear");
parameters.backend.bind();
parameters.context.clear((parameters.debugOptions & MapDebugOptions::Overdraw)
? Color::black()
: backgroundColor,
1.0f,
0);
? Color::black() : backgroundColor);
}
// - CLIPPING MASKS ----------------------------------------------------------------------------