summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-07-02 21:43:03 +0300
committerGitHub <noreply@github.com>2019-07-02 21:43:03 +0300
commit4877a1bd3a64091efa3072ba4657f4c0643ff689 (patch)
treeecab233133e2df50c39ee88ff36015e60ca3ef15
parent664c50f3bd19399701bc41d4e0992407c706b9b8 (diff)
downloadqtlocation-mapboxgl-upstream/revert-14926-tmpsantos-logging_info.tar.gz
Revert "[core] Change severity of too many data-driven properties to "Info""upstream/revert-14926-tmpsantos-logging_info
This reverts commit 2125080dc34381e7458695ed584ea94398d0e9b2.
-rw-r--r--src/mbgl/renderer/render_layer.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mbgl/renderer/render_layer.cpp b/src/mbgl/renderer/render_layer.cpp
index 4ad93a0d16..a18862ce0a 100644
--- a/src/mbgl/renderer/render_layer.cpp
+++ b/src/mbgl/renderer/render_layer.cpp
@@ -78,21 +78,21 @@ void RenderLayer::checkRenderability(const PaintParameters& parameters,
}
if (activeBindingCount > parameters.context.maximumVertexBindingCount) {
- Log::Info(Event::OpenGL,
- "The layer '%s' uses more data-driven properties than the current device "
- "supports, and will have rendering errors. To ensure compatibility with this "
- "device, use %d fewer data driven properties in this layer.",
- getID().c_str(),
- activeBindingCount - parameters.context.minimumRequiredVertexBindingCount);
+ Log::Error(Event::OpenGL,
+ "The layer '%s' uses more data-driven properties than the current device "
+ "supports, and will have rendering errors. To ensure compatibility with this "
+ "device, use %d fewer data driven properties in this layer.",
+ getID().c_str(),
+ activeBindingCount - parameters.context.minimumRequiredVertexBindingCount);
hasRenderFailures = true;
} else if (activeBindingCount > parameters.context.minimumRequiredVertexBindingCount) {
- Log::Info(Event::OpenGL,
- "The layer '%s' uses more data-driven properties than some devices may support. "
- "Though it will render correctly on this device, it may have rendering errors "
- "on other devices. To ensure compatibility with all devices, use %d fewer "
- "data-driven properties in this layer.",
- getID().c_str(),
- activeBindingCount - parameters.context.minimumRequiredVertexBindingCount);
+ Log::Warning(Event::OpenGL,
+ "The layer '%s' uses more data-driven properties than some devices may support. "
+ "Though it will render correctly on this device, it may have rendering errors "
+ "on other devices. To ensure compatibility with all devices, use %d fewer "
+ "data-driven properties in this layer.",
+ getID().c_str(),
+ activeBindingCount - parameters.context.minimumRequiredVertexBindingCount);
hasRenderFailures = true;
}
}