Fix various -Wmaybe-uninitialized warnings from GCC 12.2.1

Not sure why I didn't get those before, it may be due to upstream
changes (12.2.1 is a moving target, it's basically 12.3-dev), or simply
rebuilding Godot from scratch with different options.
This commit is contained in:
Rémi Verschelde 2022-09-22 09:25:47 +02:00
parent 8e14f9ba21
commit d1a155e3cd
7 changed files with 31 additions and 26 deletions

View file

@ -3302,7 +3302,7 @@ void RendererSceneRenderRD::_render_shadow_pass(RID p_light, RID p_shadow_atlas,
ERR_FAIL_COND(!light_instance);
Rect2i atlas_rect;
uint32_t atlas_size;
uint32_t atlas_size = 1;
RID atlas_fb;
bool using_dual_paraboloid = false;