diff options
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) { |