From bc44d2855b8a4b863189e4c8ba2610b4db7bce14 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 3 Dec 2023 12:25:55 +0100 Subject: [PATCH] cogl: Initialize first_index_to_prune I don't know how come that the compiler wasn't complaining about it till now Part-of: --- cogl/cogl/cogl-pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cogl/cogl/cogl-pipeline.c b/cogl/cogl/cogl-pipeline.c index 9f3d2977f..9c6be0cb0 100644 --- a/cogl/cogl/cogl-pipeline.c +++ b/cogl/cogl/cogl-pipeline.c @@ -1447,6 +1447,7 @@ _cogl_pipeline_prune_to_n_layers (CoglPipeline *pipeline, int n) * before we change the number of layers */ state.keep_n = n; state.current_pos = 0; + state.first_index_to_prune = 0; _cogl_pipeline_foreach_layer_internal (pipeline, update_prune_layers_info_cb, &state);