]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / glsl / debug.cpp
index c741ed57665b2dfae993073c13b387fcec61b0aa..a090c3622079bd9bfeedf2fc517a276d7877d463 100644 (file)
@@ -355,6 +355,10 @@ void DumpTree::visit(ImageTypeDeclaration &type)
        branches.emplace_back(format("Dimensions: %s%s", dims[type.dimensions-1], (type.array ? " array" : "")));
        if(type.base_type)
                branches.emplace_back(format("Element type: %s %s", get_label(*type.base_type), format_type(type.base_type->name)));
+       if(!type.format.empty())
+               branches.emplace_back(format("Texel format: %s", type.format));
+       if(type.sampled)
+               branches.emplace_back("Sampled");
        if(type.shadow)
                branches.emplace_back("Shadow");
        if(type.multisample)