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);