X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fdebug.cpp;h=5b142019150441f3fd7291f03db30473e401631b;hp=2543450212c4d4442005770cf7eb8ca5f8e34da3;hb=b7ecc29c204faede028556d1942b2d61d5cda9ee;hpb=cf1676a405c2a81413fd565bc83331b7a8778eb5 diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index 25434502..5b142019 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -315,7 +315,7 @@ void DumpTree::visit(BasicTypeDeclaration &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));