Skip to content

Commit 344ca17

Browse files
committed
Fix leading lines
1 parent 25090cb commit 344ca17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ std::string CHLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
200200
// Line 1 comes before all the extra defines in the main shader
201201
insertIntoStart(code, std::ostringstream(std::string(IShaderCompiler::PREPROC_DIRECTIVE_ENABLER) + "line 1\n"));
202202

203-
uint32_t defineLeadingLinesMain = 0;
203+
uint32_t defineLeadingLinesMain = 1;
204204
uint32_t leadingLinesImports = IShaderCompiler::encloseWithinExtraInclGuardsLeadingLines(preprocessOptions.maxSelfInclusionCount + 1u);
205205
if (preprocessOptions.extraDefines.size())
206206
{

0 commit comments

Comments
 (0)