You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Validate texture in RendererStorageRD::free
This commit is contained in:
@@ -8552,6 +8552,7 @@ bool RendererStorageRD::free(RID p_rid) {
|
||||
if (texture_owner.owns(p_rid)) {
|
||||
Texture *t = texture_owner.getornull(p_rid);
|
||||
|
||||
ERR_FAIL_COND_V(!t, false);
|
||||
ERR_FAIL_COND_V(t->is_render_target, false);
|
||||
|
||||
if (RD::get_singleton()->texture_is_valid(t->rd_texture_srgb)) {
|
||||
|
||||
Reference in New Issue
Block a user