Skip to content

Commit 3d2198c

Browse files
committed
fix shader empty lines
1 parent 6a1dbb6 commit 3d2198c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/asset-processor/shader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ namespace
287287
line = trim(line);
288288
if (line.empty())
289289
{
290-
output("");
290+
if (stackIsOk(stack))
291+
output("");
291292
continue;
292293
}
293294
if (line[0] == '$' || (allowParsingHash() && line[0] == '#'))

0 commit comments

Comments
 (0)