You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
RenderDummy::TextureStorage::texture_replace add missing null check
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user