summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-20 11:36:04 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-20 11:36:04 +0100
commit137327812b81c6ef4e037fdade3b2aa7ef5cce84 (patch)
treeae31545d21a43d0909390a698aa0c6dd2a222531 /servers
parent3a43d446563e547f523bbd73936137744e51bd4d (diff)
parent8000751d9022c99c946e53d4893bbcce81d544ad (diff)
Merge pull request #68876 from dzil123/renderdummy_texture_replace_null_check
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);
};