summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/ShaderCompiler.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-17 00:46:58 +0800
committerchai <chaifix@163.com>2021-11-17 00:46:58 +0800
commit9421ca53788e51a92b28056e06af3d9dd6b4d92c (patch)
tree045519df1b7eacbadd8af5df79c1367869514dc8 /Runtime/Graphics/ShaderCompiler.cpp
parent1f5b75d39721ad40483f1b188af2e965fbe205ac (diff)
*rename
Diffstat (limited to 'Runtime/Graphics/ShaderCompiler.cpp')
-rw-r--r--Runtime/Graphics/ShaderCompiler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Runtime/Graphics/ShaderCompiler.cpp b/Runtime/Graphics/ShaderCompiler.cpp
index 20b19f5..bc601a8 100644
--- a/Runtime/Graphics/ShaderCompiler.cpp
+++ b/Runtime/Graphics/ShaderCompiler.cpp
@@ -21,11 +21,11 @@ std::string s_CompileError = "";
void GLSLCompiler::Compile(std::string& src, std::string& vsh, std::string& fsh, RenderCommandGroup& group)/*throw GLSLCompileException*/
{
#define CheckLabel(label) {\
-int pos = src.find(label);\
-if(pos == string::npos || !IsLabelActive(src, label)) {\
- s_CompileError = std::string("Compile Shader Error: No ") + #label + " label";\
- throw GLSLCompileException(s_CompileError.c_str());\
-}}
+ int pos = src.find(label);\
+ if(pos == string::npos || !IsLabelActive(src, label)) {\
+ s_CompileError = std::string("Compile Shader Error: No ") + #label + " label";\
+ throw GLSLCompileException(s_CompileError.c_str());\
+ }}
CheckLabel(VSH_BEGIN);
CheckLabel(VSH_END);