cogl: Initialize first_index_to_prune

I don't know how come that the compiler wasn't complaining about it till now

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3437>
This commit is contained in:
Bilal Elmoussaoui 2023-12-03 12:25:55 +01:00 committed by Marge Bot
parent 6b29371db3
commit bc44d2855b

View File

@ -1447,6 +1447,7 @@ _cogl_pipeline_prune_to_n_layers (CoglPipeline *pipeline, int n)
* before we change the number of layers */ * before we change the number of layers */
state.keep_n = n; state.keep_n = n;
state.current_pos = 0; state.current_pos = 0;
state.first_index_to_prune = 0;
_cogl_pipeline_foreach_layer_internal (pipeline, _cogl_pipeline_foreach_layer_internal (pipeline,
update_prune_layers_info_cb, update_prune_layers_info_cb,
&state); &state);