summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authordzil123 <5725958+dzil123@users.noreply.github.com>2022-11-18 22:02:47 -0800
committerdzil123 <5725958+dzil123@users.noreply.github.com>2022-11-18 22:03:46 -0800
commit8000751d9022c99c946e53d4893bbcce81d544ad (patch)
treeff97287075b4873c265db46897b3a9927afac572 /servers
parent84c404f6bcce9ba112118d77afd6bd70a92774d1 (diff)
RenderDummy::TextureStorage::texture_replace add missing null check
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/dummy/storage/texture_storage.h1
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);
};