Merge pull request #68876 from dzil123/renderdummy_texture_replace_null_check

RenderDummy::TextureStorage::texture_replace add missing null check
This commit is contained in:
Rémi Verschelde 2022-11-20 11:36:04 +01:00
commit 137327812b
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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);
};