diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-06-14 21:09:07 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-06-15 03:39:45 +0300 |
commit | 2125080dc34381e7458695ed584ea94398d0e9b2 (patch) | |
tree | 2033973b85468b83379754b29c3b2097507e4ac1 | |
parent | 1cfb0ed10d9678169976d574e8c1c3322337fceb (diff) | |
download | qtlocation-mapboxgl-2125080dc34381e7458695ed584ea94398d0e9b2.tar.gz |
[core] Change severity of too many data-driven properties to "Info"
So it can be filtered by the SDKs using a Log::Observer.
-rw-r--r-- | src/mbgl/renderer/render_layer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mbgl/renderer/render_layer.cpp b/src/mbgl/renderer/render_layer.cpp index a18862ce0a..4ad93a0d16 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::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); + 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); hasRenderFailures = true; } else if (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); + 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); hasRenderFailures = true; } } |