Skip to content

Commit e9ee888

Browse files
fix the compiler include resolving crashbug
1 parent cb48a21 commit e9ee888

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ std::string CHLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
281281
}
282282
else
283283
{
284+
lineOffsetStack.push_back(lineOffsetStack.back()); // have to push something because pop-include expects something
284285
return tcpp::TInputStreamUniquePtr(new tcpp::StringInputStream(std::string("#error No include handler\n")));
285286
}
286287
};

0 commit comments

Comments
 (0)