From d0b4546eee7e4e4e87dc2edcefed1014366fe723 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 14 Mar 2023 18:45:11 -0700 Subject: [PATCH] Don't emit ANSI colors in shader validation error messages. --- wgpu-core/src/pipeline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/pipeline.rs b/wgpu-core/src/pipeline.rs index 246799f0570..cefeb97ba76 100644 --- a/wgpu-core/src/pipeline.rs +++ b/wgpu-core/src/pipeline.rs @@ -88,7 +88,7 @@ impl fmt::Display for ShaderError> 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