From 51fb6934559a161fca5b93401e86b8255ca3c59a Mon Sep 17 00:00:00 2001 From: hiker Date: Sat, 30 May 2015 12:37:39 +1000 Subject: [PATCH] Remove all kill functions for shader reloading after all shaders have been deleted. --- src/graphics/shader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/shader.cpp b/src/graphics/shader.cpp index f7a56e0d3..9baf07ca4 100644 --- a/src/graphics/shader.cpp +++ b/src/graphics/shader.cpp @@ -209,6 +209,7 @@ void ShaderBase::updateShaders() { m_all_kill_functions[i](); } + m_all_kill_functions.clear(); } // updateShaders // ----------------------------------------------------------------------------