diff options
author | dzil123 <5725958+dzil123@users.noreply.github.com> | 2022-11-18 22:02:47 -0800 |
---|---|---|
committer | dzil123 <5725958+dzil123@users.noreply.github.com> | 2022-11-18 22:03:46 -0800 |
commit | 8000751d9022c99c946e53d4893bbcce81d544ad (patch) | |
tree | ff97287075b4873c265db46897b3a9927afac572 /servers | |
parent | 84c404f6bcce9ba112118d77afd6bd70a92774d1 (diff) |
RenderDummy::TextureStorage::texture_replace add missing null check
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/dummy/storage/texture_storage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/dummy/storage/texture_storage.h b/servers/rendering/dummy/storage/texture_storage.h index a17d734e10..dd89504f38 100644 --- a/servers/rendering/dummy/storage/texture_storage.h +++ b/servers/rendering/dummy/storage/texture_storage.h @@ -80,6 +80,7 @@ public: virtual void texture_free(RID p_rid) override { // delete the texture DummyTexture *texture = texture_owner.get_or_null(p_rid); + ERR_FAIL_COND(!texture); texture_owner.free(p_rid); memdelete(texture); }; |