summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-12 13:03:40 -0800
committerKonstantin Käfer <mail@kkaefer.com>2015-03-06 16:17:49 +0100
commit8408dc9e4dbb0302d523e893861b60473a33c91e (patch)
tree118bc7e5bb736b184396df01a23e7932783a1860 /src
parentd62bf415f0ff3acb6bef1cfca36605cc12a6c6ca (diff)
downloadqtlocation-mapboxgl-8408dc9e4dbb0302d523e893861b60473a33c91e.tar.gz
use a reinterpret_cast to return the correct type
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/shader/shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/shader/shader.cpp b/src/mbgl/shader/shader.cpp
index 00b928b445..a079409aa0 100644
--- a/src/mbgl/shader/shader.cpp
+++ b/src/mbgl/shader/shader.cpp
@@ -127,7 +127,7 @@ bool Shader::compileShader(GLuint *shader, GLenum type, const GLchar *source) {
MBGL_CHECK_ERROR(glGetShaderiv(*shader, GL_COMPILE_STATUS, &status));
if (status == GL_FALSE) {
- Log::Error(Event::Shader, "Shader %s failed to compile.", name, type);
+ Log::Error(Event::Shader, "Shader %s failed to compile.", name);
MBGL_CHECK_ERROR(glDeleteShader(*shader));
*shader = 0;
return false;