diff --git a/servers/rendering/dummy/storage/material_storage.h b/servers/rendering/dummy/storage/material_storage.h index 4fd178ac88aa..4a956cd25d08 100644 --- a/servers/rendering/dummy/storage/material_storage.h +++ b/servers/rendering/dummy/storage/material_storage.h @@ -76,6 +76,8 @@ class MaterialStorage : public RendererMaterialStorage { /* SHADER API */ + bool owns_shader(RID p_rid) { return shader_owner.owns(p_rid); } + virtual RID shader_allocate() override; virtual void shader_initialize(RID p_rid) override; virtual void shader_free(RID p_rid) override; diff --git a/servers/rendering/dummy/storage/mesh_storage.h b/servers/rendering/dummy/storage/mesh_storage.h index a7351655bd7b..ce0e80e8c8fe 100644 --- a/servers/rendering/dummy/storage/mesh_storage.h +++ b/servers/rendering/dummy/storage/mesh_storage.h @@ -138,6 +138,8 @@ class MeshStorage : public RendererMeshStorage { /* MULTIMESH API */ + bool owns_multimesh(RID p_rid) { return multimesh_owner.owns(p_rid); } + virtual RID multimesh_allocate() override; virtual void multimesh_initialize(RID p_rid) override; virtual void multimesh_free(RID p_rid) override; diff --git a/servers/rendering/dummy/storage/utilities.h b/servers/rendering/dummy/storage/utilities.h index 72327fbf4df4..2497451fdc93 100644 --- a/servers/rendering/dummy/storage/utilities.h +++ b/servers/rendering/dummy/storage/utilities.h @@ -31,6 +31,7 @@ #ifndef UTILITIES_DUMMY_H #define UTILITIES_DUMMY_H +#include "material_storage.h" #include "mesh_storage.h" #include "servers/rendering/storage/utilities.h" #include "texture_storage.h" @@ -63,6 +64,12 @@ class Utilities : public RendererUtilities { } else if (RendererDummy::MeshStorage::get_singleton()->owns_mesh(p_rid)) { RendererDummy::MeshStorage::get_singleton()->mesh_free(p_rid); return true; + } else if (RendererDummy::MeshStorage::get_singleton()->owns_multimesh(p_rid)) { + RendererDummy::MeshStorage::get_singleton()->multimesh_free(p_rid); + return true; + } else if (RendererDummy::MaterialStorage::get_singleton()->owns_shader(p_rid)) { + RendererDummy::MaterialStorage::get_singleton()->shader_free(p_rid); + return true; } return false; }