Skip to content

Commit

Permalink
Return original source if shader preprocessor fails (#4285)
Browse files Browse the repository at this point in the history
* return original source if preprocessor fails
* upgrade preprocess failure message to warning
  • Loading branch information
slimbuck authored May 30, 2022
1 parent 8659454 commit 88566de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ class Preprocessor {
}

if (error) {
Debug.error("Failed to preprocess shader: ", { source: originalSource });
return null;
console.warn("Failed to preprocess shader: ", { source: originalSource });
return originalSource;
}

return source;
Expand Down

0 comments on commit 88566de

Please sign in to comment.