Skip to content

Commit

Permalink
Fix shader compile error when semicolon in single line comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliatech committed Apr 9, 2022
1 parent 7011eef commit d8803b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/dev/core/src/Engines/Processors/shaderCodeCursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ export class ShaderCodeCursor {
continue;
}

// Do not split single line comments
if (line.trim().startsWith("//")) {
this._lines.push(line);
continue;
}

const split = line.split(";");

for (let index = 0; index < split.length; index++) {
Expand Down

0 comments on commit d8803b5

Please sign in to comment.