From ffe5114fed70f18a0a6828f408747991f3d6e452 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Thu, 30 Sep 2021 13:53:44 +0000 Subject: [PATCH] dawn_node: Fix conversion of BlendState A silly typo was causing a large number of blending tests to fail. Bug: dawn:1123 Change-Id: Ib6423ad6c58baab2db15034633f95bab7b0c7912 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/65401 Reviewed-by: Corentin Wallez Commit-Queue: Ben Clayton --- src/dawn_node/binding/Converter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn_node/binding/Converter.cpp b/src/dawn_node/binding/Converter.cpp index 2ab986a547..61ba6cae35 100644 --- a/src/dawn_node/binding/Converter.cpp +++ b/src/dawn_node/binding/Converter.cpp @@ -507,7 +507,7 @@ namespace wgpu { namespace binding { bool Converter::Convert(wgpu::BlendState& out, const interop::GPUBlendState& in) { out = {}; - return Convert(out.alpha, in.alpha) && Convert(out.color, in.alpha); + return Convert(out.alpha, in.alpha) && Convert(out.color, in.color); } bool Converter::Convert(wgpu::PrimitiveState& out, const interop::GPUPrimitiveState& in) {