deallocate pipeline in renderer on pipeline destroy

This commit is contained in:
h4570
2022-07-30 18:17:48 +02:00
parent 1bdb33e1a6
commit 927c10e82a
6 changed files with 20 additions and 3 deletions
@@ -15,7 +15,9 @@ namespace Tyra {
StaticPipeline::StaticPipeline() {}
StaticPipeline::~StaticPipeline() {}
StaticPipeline::~StaticPipeline() {
if (onDestroy) onDestroy(this);
}
void StaticPipeline::setRenderer(RendererCore* t_core) {
rendererCore = t_core;