Original Post
I''m trying to concatenate the world and view matrix and pass that concatenated matrix as a world matrix and pass an identity matrix for the view matrix, but it crashes on the first line in this code:
g_pd3dDevice->SetTransform( D3DTS_WORLD, D3DXMatrixMultiply( NULL, &matWorld, &matView ) );
g_pd3dDevice->SetTransform( D3DTS_VIEW, D3DXMatrixIdentity( NULL ) );
It works if I pass each matrix where it should be passed, so why dosen''t it work this way?