TheAssemblyArmada / Thyme

An open source re-implementation of Generals : Zero Hour written in C++.
GNU General Public License v2.0
585 stars 59 forks source link

reinterpret_cast in W3DProjectedShadowManager::Render_Projected_Terrain_Shadow #1046

Open xezon opened 10 months ago

xezon commented 10 months ago
static Matrix4 mWorld(true);
...
dev->SetTransform(D3DTS_WORLD, reinterpret_cast<D3DMATRIX *>(&mWorld));

Should use Thyme::To_D3DMATRIX, or make mWorld a D3DMATRIX.