summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Shader.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-31 19:47:57 +0800
committerchai <chaifix@163.com>2021-10-31 19:47:57 +0800
commite5ffcfb43231c55c1cdd71566e622de7583160a9 (patch)
treec8cf84cf3eb6ca805054bd6f6466fd772eb44515 /Runtime/Graphics/Shader.cpp
parentb972cec461f6c587edd8febbc6dad45bad65046d (diff)
* glsl compiler
Diffstat (limited to 'Runtime/Graphics/Shader.cpp')
-rw-r--r--Runtime/Graphics/Shader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Runtime/Graphics/Shader.cpp b/Runtime/Graphics/Shader.cpp
index 67bbe01..ca5a572 100644
--- a/Runtime/Graphics/Shader.cpp
+++ b/Runtime/Graphics/Shader.cpp
@@ -58,6 +58,7 @@ Shader::Shader(LuaBind::VM*vm, std::string& glslShader)
}
catch (GLSLCompileException& e)
{
+ ReleaseRenderCommandGroup(cmd);
throw ShaderCompileExecption(e.what());
}
CompileProgram(vsh.c_str(), fsh.c_str());