From 7eefad34fc93838a5a3fe976ed0ee47818004b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 6 Feb 2021 15:55:03 +0100 Subject: [PATCH] List `color_blend` first in `wgpu::quad` --- wgpu/src/quad.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu/src/quad.rs b/wgpu/src/quad.rs index f8531992..e0a6e043 100644 --- a/wgpu/src/quad.rs +++ b/wgpu/src/quad.rs @@ -130,13 +130,13 @@ impl Pipeline { entry_point: "main", targets: &[wgpu::ColorTargetState { format, - alpha_blend: wgpu::BlendState { - src_factor: wgpu::BlendFactor::One, + color_blend: wgpu::BlendState { + src_factor: wgpu::BlendFactor::SrcAlpha, dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha, operation: wgpu::BlendOperation::Add, }, - color_blend: wgpu::BlendState { - src_factor: wgpu::BlendFactor::SrcAlpha, + alpha_blend: wgpu::BlendState { + src_factor: wgpu::BlendFactor::One, dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha, operation: wgpu::BlendOperation::Add, },