changed cleanup behaviour
This commit is contained in:
parent
7ba1abfca4
commit
f2974f0fe6
|
@ -31,6 +31,9 @@ void Application::Quit()
|
||||||
{
|
{
|
||||||
delete topology;
|
delete topology;
|
||||||
|
|
||||||
|
lol::ShaderManager::GetInstance().Cleanup();
|
||||||
|
lol::ObjectManager<lol::Texture1D>::GetInstance().Cleanup();
|
||||||
|
|
||||||
glfwDestroyWindow(window);
|
glfwDestroyWindow(window);
|
||||||
window = nullptr;
|
window = nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,8 +119,8 @@ Topology::Topology(const glm::vec2& size, const glm::uvec2& subdivisions) :
|
||||||
|
|
||||||
Topology::~Topology()
|
Topology::~Topology()
|
||||||
{
|
{
|
||||||
lol::ShaderManager::GetInstance().Cleanup();
|
lol::ShaderManager::GetInstance().CleanupUnused();
|
||||||
lol::ObjectManager<lol::Texture1D>::GetInstance().Cleanup();
|
lol::ObjectManager<lol::Texture1D>::GetInstance().CleanupUnused();
|
||||||
|
|
||||||
if (texture != nullptr)
|
if (texture != nullptr)
|
||||||
delete texture;
|
delete texture;
|
||||||
|
|
2
vendor/lol
vendored
2
vendor/lol
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 48d2dbcb7e2c126b67c2fabd82567cbbb89e1c22
|
Subproject commit e23d22153c88822a2a15e798ad2643fdcbdf6dc3
|
Loading…
Reference in a new issue