From 0fd90bae6980b13603ee6189eacb45c7a974578b Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 15 Apr 2023 10:52:02 -0500 Subject: [PATCH] fix(gx): correct types --- src/gx/d3d/CGxDeviceD3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gx/d3d/CGxDeviceD3d.cpp b/src/gx/d3d/CGxDeviceD3d.cpp index e7a6dd7..acc58b4 100644 --- a/src/gx/d3d/CGxDeviceD3d.cpp +++ b/src/gx/d3d/CGxDeviceD3d.cpp @@ -1705,12 +1705,12 @@ void CGxDeviceD3d::IStateSyncVertexPtrs() { void CGxDeviceD3d::IStateSyncXforms() { if (this->m_xforms[GxXform_Projection].m_dirty) { - this->m_d3dDevice->SetTransform(D3DTS_PROJECTION, &this->m_projNative); + this->m_d3dDevice->SetTransform(D3DTS_PROJECTION, reinterpret_cast(&this->m_projNative)); this->m_xforms[GxXform_Projection].m_dirty = 0; } if (this->m_xforms[GxXform_View].m_dirty) { - this->m_d3dDevice->SetTransform(D3DTS_VIEW, &this->m_xforms[GxXform_View].TopConst()); + this->m_d3dDevice->SetTransform(D3DTS_VIEW, reinterpret_cast(&this->m_xforms[GxXform_View].TopConst())); this->m_xforms[GxXform_View].m_dirty = 0; }