From 9421ca53788e51a92b28056e06af3d9dd6b4d92c Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 17 Nov 2021 00:46:58 +0800 Subject: *rename --- Runtime/Graphics/ShaderCompiler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Runtime/Graphics/ShaderCompiler.cpp') 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); -- cgit v1.1-26-g67d0