summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-08-12 16:15:15 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-08-24 13:06:23 -0700
commitb0c03f9396f52264184f9a0b18efdf89e787799d (patch)
tree4554dfbdbb014fd57739ca99b5821c9191c8ab9b
parent28be432041a8735d085b9740d32a422e51a01b74 (diff)
downloadqtlocation-mapboxgl-b0c03f9396f52264184f9a0b18efdf89e787799d.tar.gz
[core] No need to skip glClear optimization in overdraw mode
-rw-r--r--src/mbgl/renderer/renderer_impl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mbgl/renderer/renderer_impl.cpp b/src/mbgl/renderer/renderer_impl.cpp
index 62fbba039f..21ff8ed478 100644
--- a/src/mbgl/renderer/renderer_impl.cpp
+++ b/src/mbgl/renderer/renderer_impl.cpp
@@ -273,11 +273,6 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
}
if (const RenderBackgroundLayer* background = layer->as<RenderBackgroundLayer>()) {
- if (parameters.debugOptions & MapDebugOptions::Overdraw) {
- // We want to skip glClear optimization in overdraw mode.
- order.emplace_back(RenderItem { *layer, nullptr });
- continue;
- }
const BackgroundPaintProperties::PossiblyEvaluated& paint = background->evaluated;
if (layerImpl.get() == layerImpls->at(0).get() && paint.get<BackgroundPattern>().from.empty()) {
// This is a solid background. We can use glClear().