summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglshaderprogram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qglshaderprogram.cpp')
-rw-r--r--src/opengl/qglshaderprogram.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qglshaderprogram.cpp b/src/opengl/qglshaderprogram.cpp
index 7f41339..4598bff 100644
--- a/src/opengl/qglshaderprogram.cpp
+++ b/src/opengl/qglshaderprogram.cpp
@@ -261,14 +261,14 @@ bool QGLShaderPrivate::compile(QGLShader *q)
log = QString::fromLatin1(logbuf);
QString name = q->objectName();
- char *types[] = {
+ const char *types[] = {
"Fragment",
"Vertex",
"Geometry",
""
};
- char *type = types[3];
+ const char *type = types[3];
if (shaderType == QGLShader::Fragment)
type = types[0];
else if (shaderType == QGLShader::Vertex)