Skip to content

Commit

Permalink
Don't emit ANSI colors in shader validation error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed Mar 15, 2023
1 parent a820131 commit d0b4546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl fmt::Display for ShaderError<naga::WithSpan<naga::valid::ValidationError>>
let label = self.label.as_deref().unwrap_or_default();
let files = SimpleFile::new(label, &self.source);
let config = term::Config::default();
let mut writer = term::termcolor::Ansi::new(Vec::new());
let mut writer = term::termcolor::NoColor::new(Vec::new());

let diagnostic = Diagnostic::error().with_labels(
self.inner
Expand Down

0 comments on commit d0b4546

Please sign in to comment.