summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/Shader.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-31 17:29:32 +0800
committerchai <chaifix@163.com>2021-10-31 17:29:32 +0800
commit98d05c5030ba1c35ddfe402790702b3f44c63134 (patch)
treed251ae9e96a46947bc4fa65817f2ebfa4b07087a /Runtime/Graphics/Shader.cpp
parent4b24de9ef863f54eb09a5fa1f18e2905cedcc439 (diff)
- Runtime Proj
+ Runner Proj
Diffstat (limited to 'Runtime/Graphics/Shader.cpp')
-rw-r--r--Runtime/Graphics/Shader.cpp3
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)
{