diff options
author | chai <chaifix@163.com> | 2021-11-04 10:00:00 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 10:00:00 +0800 |
commit | b215d811a1981e20f35bb31df4e6cd2a74146193 (patch) | |
tree | e95655e6d97d0979678e56988287a030c2074ed1 /Runtime/Graphics/Shader.cpp | |
parent | cc68bba3a4e1a78bc8b62a5902230a4ae5043ccb (diff) |
*misc
Diffstat (limited to 'Runtime/Graphics/Shader.cpp')
-rw-r--r-- | Runtime/Graphics/Shader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Runtime/Graphics/Shader.cpp b/Runtime/Graphics/Shader.cpp index 8df3624..d1fe78e 100644 --- a/Runtime/Graphics/Shader.cpp +++ b/Runtime/Graphics/Shader.cpp @@ -45,7 +45,7 @@ Shader::Shader(LuaBind::VM*vm) { } -Shader::Shader(LuaBind::VM*vm, std::string& glslShader) +Shader::Shader(LuaBind::VM*vm, std::string& glsllShader) : NativeClass<Shader>(vm) { // stl的string会在大小超过阈值的情况下在栈里分配,并用RAII保证释放 @@ -53,9 +53,9 @@ Shader::Shader(LuaBind::VM*vm, std::string& glslShader) std::string fsh ; try { - GLSCompiler::Compile(glslShader, vsh, fsh, m_Commands); + GLSLCompiler::Compile(glsllShader, vsh, fsh, m_Commands); } - catch (GLSCompileException& e) + catch (GLSLCompileException& e) { ReleaseRenderCommandGroup(m_Commands); throw ShaderCompileExecption(e.what()); |