Fix crash with cube shadows in gles2, closes #22635
Fix crash with cube shadows in gles2, closes #22635

Faless/godot,firefly2442/godot,vkbsb/godot,DmitriySalnikov/godot,godotengine/godot,DmitriySalnikov/godot,godotengine/godot,firefly2442/godot,Faless/godot,guilhermefelipecgs/godot,ZuBsPaCe/godot,Shockblast/godot,Paulloz/godot,akien-mga/godot,vkbsb/godot,akien-mga/godot,vkbsb/godot,ex/godot,godotengine/godot,pkowal1982/godot,vkbsb/godot,MarianoGnu/godot,BastiaanOlij/godot,Shockblast/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,sanikoyes/godot,akien-mga/godot,guilhermefelipecgs/godot,groud/godot,Paulloz/godot,Shockblast/godot,MarianoGnu/godot,okamstudio/godot,josempans/godot,Shockblast/godot,Zylann/godot,honix/godot,BastiaanOlij/godot,ex/godot,sanikoyes/godot,okamstudio/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,okamstudio/godot,BastiaanOlij/godot,firefly2442/godot,Valentactive/godot,MarianoGnu/godot,Valentactive/godot,honix/godot,BastiaanOlij/godot,firefly2442/godot,sanikoyes/godot,godotengine/godot,ZuBsPaCe/godot,pkowal1982/godot,pkowal1982/godot,josempans/godot,Zylann/godot,vkbsb/godot,Shockblast/godot,groud/godot,Valentactive/godot,vnen/godot,Valentactive/godot,honix/godot,okamstudio/godot,pkowal1982/godot,Paulloz/godot,groud/godot,vnen/godot,Faless/godot,akien-mga/godot,Faless/godot,josempans/godot,Zylann/godot,akien-mga/godot,godotengine/godot,akien-mga/godot,ex/godot,Valentactive/godot,Shockblast/godot,guilhermefelipecgs/godot,josempans/godot,DmitriySalnikov/godot,firefly2442/godot,okamstudio/godot,Zylann/godot,ex/godot,Zylann/godot,josempans/godot,Shockblast/godot,MarianoGnu/godot,okamstudio/godot,Faless/godot,MarianoGnu/godot,vkbsb/godot,ZuBsPaCe/godot,honix/godot,Paulloz/godot,vkbsb/godot,ZuBsPaCe/godot,guilhermefelipecgs/godot,sanikoyes/godot,Faless/godot,firefly2442/godot,godotengine/godot,Valentactive/godot,godotengine/godot,ex/godot,vnen/godot,ZuBsPaCe/godot,okamstudio/godot,Faless/godot,Zylann/godot,pkowal1982/godot,Paulloz/godot,BastiaanOlij/godot,DmitriySalnikov/godot,groud/godot,akien-mga/godot,pkowal1982/godot,Zylann/godot,Paulloz/godot,BastiaanOlij/godot,ex/godot,ZuBsPaCe/godot,Paulloz/godot,Shockblast/godot,BastiaanOlij/godot,akien-mga/godot,ex/godot,honix/godot,DmitriySalnikov/godot,Faless/godot,sanikoyes/godot,okamstudio/godot,vkbsb/godot,vnen/godot,vnen/godot,groud/godot,vnen/godot,sanikoyes/godot,sanikoyes/godot,vnen/godot,firefly2442/godot,josempans/godot,guilhermefelipecgs/godot,ex/godot,sanikoyes/godot,MarianoGnu/godot,guilhermefelipecgs/godot,MarianoGnu/godot,okamstudio/godot,josempans/godot,DmitriySalnikov/godot,pkowal1982/godot,groud/godot,vnen/godot,okamstudio/godot,Valentactive/godot,josempans/godot,ZuBsPaCe/godot,honix/godot,firefly2442/godot,Zylann/godot,Valentactive/godot,godotengine/godot,pkowal1982/godot,BastiaanOlij/godot,MarianoGnu/godot