Skip to content

Commit

Permalink
fix shader empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Jan 5, 2025
1 parent 6a1dbb6 commit 3d2198c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/asset-processor/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ namespace
line = trim(line);
if (line.empty())
{
output("");
if (stackIsOk(stack))
output("");
continue;
}
if (line[0] == '$' || (allowParsingHash() && line[0] == '#'))
Expand Down

0 comments on commit 3d2198c

Please sign in to comment.