From 98d05c5030ba1c35ddfe402790702b3f44c63134 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 31 Oct 2021 17:29:32 +0800 Subject: - Runtime Proj + Runner Proj --- Runtime/Graphics/Shader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Runtime/Graphics/Shader.cpp') 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) { -- cgit v1.1-26-g67d0