Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/render.cc')
-rw-r--r--src/render/render.cc8
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