summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-08-15 14:02:45 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2021-09-01 16:46:04 +0100
commit24d02d0b4ec2d4f77949a1287242b023004cc002 (patch)
tree58b9c6a280daee1b46ed07d605b285e78fcc01a2 /servers/rendering
parentd18686233868d81b0c22d554714c4171cf83a509 (diff)
Fix dummy rendering server memory leaks
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/rasterizer_dummy.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/servers/rendering/rasterizer_dummy.h b/servers/rendering/rasterizer_dummy.h
index f58d124140..35bb7722e7 100644
--- a/servers/rendering/rasterizer_dummy.h
+++ b/servers/rendering/rasterizer_dummy.h
@@ -197,7 +197,7 @@ public:
TypedArray<Image> bake_render_uv2(RID p_base, const Vector<RID> &p_material_overrides, const Size2i &p_image_size) override { return TypedArray<Image>(); }
- bool free(RID p_rid) override { return true; }
+ bool free(RID p_rid) override { return false; }
void update() override {}
void sdfgi_set_debug_probe_select(const Vector3 &p_position, const Vector3 &p_dir) override {}
@@ -664,8 +664,9 @@ public:
DummyTexture *texture = texture_owner.getornull(p_rid);
texture_owner.free(p_rid);
memdelete(texture);
+ return true;
}
- return true;
+ return false;
}
virtual void update_memory_info() override {}