Delete DummyMesh when RasterizerStorageDummy is freed
(cherry picked from commit 66a294d459
)
This commit is contained in:
parent
c4e652a6a3
commit
ad3d643bc2
|
@ -732,6 +732,13 @@ public:
|
|||
texture_owner.free(p_rid);
|
||||
memdelete(texture);
|
||||
}
|
||||
|
||||
if (mesh_owner.owns(p_rid)) {
|
||||
// delete the mesh
|
||||
DummyMesh *mesh = mesh_owner.getornull(p_rid);
|
||||
mesh_owner.free(p_rid);
|
||||
memdelete(mesh);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue