diff options
author | chai <chaifix@163.com> | 2021-10-31 17:29:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-31 17:29:32 +0800 |
commit | 98d05c5030ba1c35ddfe402790702b3f44c63134 (patch) | |
tree | d251ae9e96a46947bc4fa65817f2ebfa4b07087a /Runtime/Graphics/Shader.cpp | |
parent | 4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (diff) |
- Runtime Proj
+ Runner Proj
Diffstat (limited to 'Runtime/Graphics/Shader.cpp')
-rw-r--r-- | Runtime/Graphics/Shader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Runtime/Graphics/Shader.cpp b/Runtime/Graphics/Shader.cpp index 4c41d6b..67bbe01 100644 --- a/Runtime/Graphics/Shader.cpp +++ b/Runtime/Graphics/Shader.cpp @@ -51,9 +51,10 @@ Shader::Shader(LuaBind::VM*vm, std::string& glslShader) // stl的string会在大小超过阈值的情况下在栈里分配,并用RAII保证释放 std::string vsh ; std::string fsh ; + RenderCommandGroup cmd; try { - GLSLCompiler::Compile(glslShader, vsh, fsh); + GLSLCompiler::Compile(glslShader, vsh, fsh, cmd); } catch (GLSLCompileException& e) { |