From 8d605be4e3e0b678c7563708ea941d6188f45678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 27 Aug 2020 19:30:56 +0200 Subject: [PATCH] Use `wgpu::Color::TRANSPARENT` --- wgpu/src/triangle.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index d06e29c0..a5789a61 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -341,12 +341,7 @@ impl Pipeline { ( attachment, Some(resolve_target), - wgpu::LoadOp::Clear(wgpu::Color { - r: 0.0, - g: 0.0, - b: 0.0, - a: 0.0, - }), + wgpu::LoadOp::Clear(wgpu::Color::TRANSPARENT), ) } else { (target, None, wgpu::LoadOp::Load)