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 <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2021-09-30 13:53:44 +00:00 committed by Dawn LUCI CQ
parent 7c9294584e
commit ffe5114fed
1 changed files with 1 additions and 1 deletions

View File

@ -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) {