glsl2: Track the number of ir_loop_jump instructions that are in a loop
This commit is contained in:
@@ -253,6 +253,10 @@ loop_control_visitor::visit_leave(ir_loop *ir)
|
||||
* satisfied.
|
||||
*/
|
||||
if_stmt->remove();
|
||||
|
||||
assert(ls->num_loop_jumps > 0);
|
||||
ls->num_loop_jumps--;
|
||||
|
||||
this->progress = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user