summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-01 12:56:05 +0100
committerGitHub <noreply@github.com>2021-11-01 12:56:05 +0100
commitd86b680e079936b1fb745b71cfa2e7dfd30f2258 (patch)
treedd17f35cf05d9461eed635695041f7d0a5635c7b /servers/rendering
parent54bedc4674d59f41c07bc7145168c432525aa1c1 (diff)
parent10818cfc102d9c0ac0e28b25a3997e6b6d93c2fd (diff)
Merge pull request #54480 from timothyqiu/texture-replace
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/rasterizer_dummy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/rasterizer_dummy.h b/servers/rendering/rasterizer_dummy.h
index f4a44c30f9..44e07a1853 100644
--- a/servers/rendering/rasterizer_dummy.h
+++ b/servers/rendering/rasterizer_dummy.h
@@ -258,7 +258,7 @@ public:
Ref<Image> texture_2d_layer_get(RID p_texture, int p_layer) const override { return Ref<Image>(); }
Vector<Ref<Image>> texture_3d_get(RID p_texture) const override { return Vector<Ref<Image>>(); }
- void texture_replace(RID p_texture, RID p_by_texture) override {}
+ void texture_replace(RID p_texture, RID p_by_texture) override { free(p_by_texture); }
void texture_set_size_override(RID p_texture, int p_width, int p_height) override {}
void texture_set_path(RID p_texture, const String &p_path) override {}