From: Mikko Rasa Date: Thu, 22 Apr 2021 10:58:57 +0000 (+0300) Subject: Fix an incorrect loop in UnusedVariableRemover X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=d4257f651ab8341d926d97d5c85d72ce64f8778b Fix an incorrect loop in UnusedVariableRemover --- diff --git a/source/glsl/optimize.cpp b/source/glsl/optimize.cpp index 16e43a9e..55e5da5f 100644 --- a/source/glsl/optimize.cpp +++ b/source/glsl/optimize.cpp @@ -1263,7 +1263,7 @@ void UnusedVariableRemover::record_assignment(const Assignment::Target &target, /* An assignment to the target hides any assignments to the same target or its subfields. */ VariableInfo &var_info = variables[target.declaration]; - for(unsigned i=0; itarget;