]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Mark constant data as const
[libs/gl.git] / source / glsl / debug.cpp
index 2543450212c4d4442005770cf7eb8ca5f8e34da3..5b142019150441f3fd7291f03db30473e401631b 100644 (file)
@@ -315,7 +315,7 @@ void DumpTree::visit(BasicTypeDeclaration &type)
 
 void DumpTree::visit(ImageTypeDeclaration &type)
 {
 
 void DumpTree::visit(ImageTypeDeclaration &type)
 {
-       static const char *dims[] = { "1D", "2D", "3D", "Cube" };
+       static const char *const dims[] = { "1D", "2D", "3D", "Cube" };
 
        append(type, format("%%%d typedef %s", get_label(type), type.name));
 
 
        append(type, format("%%%d typedef %s", get_label(type), type.name));