summaryrefslogtreecommitdiff
path: root/Runtime/Graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphics')
-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);