From d4257f651ab8341d926d97d5c85d72ce64f8778b Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 22 Apr 2021 13:58:57 +0300 Subject: [PATCH] Fix an incorrect loop in UnusedVariableRemover --- source/glsl/optimize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2