diff options
Diffstat (limited to 'src/render/render.cc')
-rw-r--r-- | src/render/render.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/render.cc b/src/render/render.cc index 81237dc..ab3b751 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -118,6 +118,10 @@ void unload() globe->render_texture = 0; } } + + if (ext_render(entity)) { + delete ext_render(entity); + } } } @@ -143,6 +147,10 @@ void clear() core::EntityGlobe *globe = static_cast<core::EntityGlobe *>(entity); globe->render_texture = 0; } + + if (ext_render(entity)) { + delete ext_render(entity); + } } // clear model refistry |