You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Check uniform set validity before freeing
This commit is contained in:
@@ -1471,7 +1471,9 @@ void RasterizerSceneRD::_setup_giprobes(RID p_render_buffers, const Transform &p
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (giprobes_changed) {
|
if (giprobes_changed) {
|
||||||
RD::get_singleton()->free(rb->gi_uniform_set);
|
if (RD::get_singleton()->uniform_set_is_valid(rb->gi_uniform_set)) {
|
||||||
|
RD::get_singleton()->free(rb->gi_uniform_set);
|
||||||
|
}
|
||||||
rb->gi_uniform_set = RID();
|
rb->gi_uniform_set = RID();
|
||||||
if (rb->volumetric_fog) {
|
if (rb->volumetric_fog) {
|
||||||
if (RD::get_singleton()->uniform_set_is_valid(rb->volumetric_fog->uniform_set)) {
|
if (RD::get_singleton()->uniform_set_is_valid(rb->volumetric_fog->uniform_set)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user