X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fspirv.cpp;h=72f73bd56bdf9c4ff1d3738342986b6fbf7a315f;hb=7302c50728ea317bcabe2d243af6b9142aac4ccd;hp=63c76f9a2233050851e9491af42855ee9f0e8a8c;hpb=e0caeb9be47bc140978552bb7149f1c9c8c973db;p=libs%2Fgl.git diff --git a/source/glsl/spirv.cpp b/source/glsl/spirv.cpp index 63c76f9a..72f73bd5 100644 --- a/source/glsl/spirv.cpp +++ b/source/glsl/spirv.cpp @@ -1902,6 +1902,7 @@ void SpirVGenerator::visit(Iteration &iter) writer.write_op(content.function_body, OP_BRANCH, header_id); writer.write_op_label(merge_block_id); + prune_loads(header_id); reachable = true; }