Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
}
if (state->flags & RADV_META_SAVE_DESCRIPTORS) {
- if (descriptors_state->valid & (1 << 0))
- state->old_descriptor_set0 = descriptors_state->sets[0];
- else
- state->old_descriptor_set0 = NULL;
+ state->old_descriptor_set0 = descriptors_state->sets[0];
+ if (!state->old_descriptor_set0)
+ state->flags &= ~RADV_META_SAVE_DESCRIPTORS;
}
if (state->flags & RADV_META_SAVE_CONSTANTS) {