Add proper sharing and deletion of shader files

This commit is contained in:
Benau
2018-01-19 14:41:33 +08:00
parent 105935c645
commit 0f95d36dbc
7 changed files with 120 additions and 50 deletions

View File

@@ -248,8 +248,8 @@ bool handleContextMenuAction(s32 cmd_id)
case DEBUG_GRAPHICS_RELOAD_SHADERS:
#ifndef SERVER_ONLY
Log::info("Debug", "Reloading shaders...");
ShaderFilesManager::getInstance()->clean();
ShaderBase::killShaders();
ShaderFilesManager::getInstance()->clearAllShaderFiles();
#endif
break;
case DEBUG_GRAPHICS_RESET: