Delete DummyMesh when RasterizerStorageDummy is freed
This commit is contained in:
parent
0b8cb945cf
commit
66a294d459
|
@ -861,6 +861,13 @@ public:
|
||||||
texture_owner.free(p_rid);
|
texture_owner.free(p_rid);
|
||||||
memdelete(texture);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue