summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-02 01:57:18 +1100
committerLeith Bade <leith@mapbox.com>2014-12-02 01:57:18 +1100
commitd27ede63fe58894344b136a052b9d25cdfba5c97 (patch)
tree3c3bb247b37657aab500bb43f7173a97f693456d /src
parent2113e27990bc496a3bd26cf079f6156ac2dd9ff6 (diff)
downloadqtlocation-mapboxgl-d27ede63fe58894344b136a052b9d25cdfba5c97.tar.gz
Enable all messages
Diffstat (limited to 'src')
-rw-r--r--src/renderer/painter.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/renderer/painter.cpp b/src/renderer/painter.cpp
index 7c94147c65..3b4e817d33 100644
--- a/src/renderer/painter.cpp
+++ b/src/renderer/painter.cpp
@@ -46,9 +46,12 @@ void Painter::setup() {
// Enable GL debugging
if ((gl::DebugMessageControl != nullptr) && (gl::DebugMessageCallback != nullptr)) {
// This will enable all messages including performance hints
- //gl::DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_TRUE);
- gl::DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_HIGH, 0, nullptr, GL_TRUE);
- gl::DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_MEDIUM, 0, nullptr, GL_TRUE);
+ gl::DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, nullptr, GL_TRUE);
+
+ // This will only enable high and medium severity messages
+ //gl::DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_HIGH, 0, nullptr, GL_TRUE);
+ //gl::DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_MEDIUM, 0, nullptr, GL_TRUE);
+
gl::DebugMessageCallback(gl::debug_callback, nullptr);
}