From e66a66a7638374922db9a0c02c84e98b397eacae Mon Sep 17 00:00:00 2001 From: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com> Date: Sat, 19 Mar 2022 12:03:57 +0100 Subject: [PATCH] [spv-out] fix wrong MatrixStride for matCx2 and mat2xR --- src/back/spv/writer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/back/spv/writer.rs b/src/back/spv/writer.rs index dad763b24..9da968d8a 100644 --- a/src/back/spv/writer.rs +++ b/src/back/spv/writer.rs @@ -871,12 +871,12 @@ impl Writer { ref other => other, }; if let crate::TypeInner::Matrix { - columns, - rows: _, + columns: _, + rows, width, } = *member_array_subty_inner { - let byte_stride = match columns { + let byte_stride = match rows { crate::VectorSize::Bi => 2 * width, crate::VectorSize::Tri | crate::VectorSize::Quad => 4 * width, };