summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-02 02:01:10 +1100
committerLeith Bade <leith@mapbox.com>2014-12-02 02:01:10 +1100
commit763e636fd758410b56353bfe2b8a7ab6052c2430 (patch)
treee1c36346209cf8dfa0eaf69892fb3148a41b1b22
parentd27ede63fe58894344b136a052b9d25cdfba5c97 (diff)
downloadqtlocation-mapboxgl-763e636fd758410b56353bfe2b8a7ab6052c2430.tar.gz
Improve formatting
-rw-r--r--src/platform/gl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/gl.cpp b/src/platform/gl.cpp
index 2695804c86..7fb4debd7a 100644
--- a/src/platform/gl.cpp
+++ b/src/platform/gl.cpp
@@ -55,7 +55,7 @@ void debug_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsi
default: strSource = "(unknown)"; evtSeverity = mbgl::EventSeverity::Debug; break;
}
- mbgl::Log::Record(evtSeverity, mbgl::Event::OpenGL, "GL Debug Message: %s %s %u %s - %s", strSource.c_str(), strType.c_str(), id, strSeverity.c_str(), message);
+ mbgl::Log::Record(evtSeverity, mbgl::Event::OpenGL, "GL_%s GL_%s %u GL_%s - %s", strSource.c_str(), strType.c_str(), id, strSeverity.c_str(), message);
}
PFNGLBINDVERTEXARRAYPROC BindVertexArray = nullptr;
@@ -82,7 +82,7 @@ void _CHECK_GL_ERROR(const char *cmd, const char *file, int line) {
default: error = "(unknown)"; break;
}
- mbgl::Log::Error(mbgl::Event::OpenGL, "GL Error: GL_%s(0x%04X) - %s:%i", error.c_str(), file, line, err);
+ mbgl::Log::Error(mbgl::Event::OpenGL, "GL_%s (0x%04X) - %s:%i", error.c_str(), file, line, err);
exit(1);
}
}