mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Free vertex_lights_2d_map in World2D's destructor.
This commit is contained in:
parent
d08718051d
commit
d7a54d702d
@ -409,5 +409,10 @@ World2D::~World2D() {
|
|||||||
RenderingServer::get_singleton()->free(canvas);
|
RenderingServer::get_singleton()->free(canvas);
|
||||||
Physics2DServer::get_singleton()->free(space);
|
Physics2DServer::get_singleton()->free(space);
|
||||||
Navigation2DServer::get_singleton()->free(navigation_map);
|
Navigation2DServer::get_singleton()->free(navigation_map);
|
||||||
|
|
||||||
|
#ifdef MODULE_VERTEX_LIGHTS_2D_ENABLED
|
||||||
|
VertexLights2DServer::get_singleton()->free(vertex_lights_2d_map);
|
||||||
|
#endif
|
||||||
|
|
||||||
memdelete(indexer);
|
memdelete(indexer);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user