From 5d3b130ec8f16d9dc77de7db86c23c467bd1131e Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 3 Apr 2021 16:59:04 +0200 Subject: [PATCH] [d3d9] respect Matrix4 alignment in ConvertMatrix --- src/d3d9/d3d9_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_util.h b/src/d3d9/d3d9_util.h index 177da89f..3f27ff70 100644 --- a/src/d3d9/d3d9_util.h +++ b/src/d3d9/d3d9_util.h @@ -138,7 +138,7 @@ namespace dxvk { if (Matrix == nullptr) // Identity. return Matrix4(); - return *(reinterpret_cast(Matrix)); + return Matrix4(Matrix->m); } uint32_t GetVertexCount(D3DPRIMITIVETYPE type, UINT count);