From 4de4689f9625d70664dcfae51d586210d142aa08 Mon Sep 17 00:00:00 2001 From: Renato Date: Thu, 2 Mar 2023 19:48:25 -0300 Subject: [PATCH] fix: memory leak --- src/framework/graphics/drawpool.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/framework/graphics/drawpool.cpp b/src/framework/graphics/drawpool.cpp index 5720cb422f..bcb6baa2cd 100644 --- a/src/framework/graphics/drawpool.cpp +++ b/src/framework/graphics/drawpool.cpp @@ -32,8 +32,6 @@ DrawPool* DrawPool::create(const DrawPoolType type) { DrawPool* pool = new DrawPool; if (type == DrawPoolType::MAP || type == DrawPoolType::FOREGROUND) { - pool = new DrawPool; - pool->m_framebuffer = std::make_shared(); pool->m_framebuffer->m_isScene = true; @@ -42,9 +40,6 @@ DrawPool* DrawPool::create(const DrawPoolType type) pool->m_framebuffer->disableBlend(); } else if (type == DrawPoolType::FOREGROUND) { pool->setFPS(FPS10); - } else if (type == DrawPoolType::LIGHT) { - pool->m_alwaysGroupDrawings = true; - pool->m_framebuffer->setCompositionMode(CompositionMode::LIGHT); } } else { pool->m_alwaysGroupDrawings = true; // CREATURE_INFORMATION & TEXT