X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.cpp;h=a35e2cd244941cb125b5e3450734ba2e88254b37;hb=2b1dc627491c987b0459226dcb8ac6aadd7ee4d3;hp=6e4b56771fa3222ce778a53d37b828b5d34554cf;hpb=5be19592e0c75ea8f9b7e5abb31b4fabd907d9ef;p=libs%2Fgl.git diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 6e4b5677..a35e2cd2 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -1229,6 +1229,8 @@ void UnusedTypeRemover::visit(ImageTypeDeclaration &type) { if(type.base_type) unused_nodes.erase(type.base_type); + if(type.base_image) + unused_nodes.erase(type.base_image); unused_nodes.insert(&type); }