Hello,
I have four triangles forming two squares, one square is in front of the other.
When I rotate the world, so that the square that was in front of the other is now (should be) the one who is back, it gets weird, the square that was in front first is still in front! But, the square is much smaller than the other.
How should I deal with this?
I have tried with using

d3ddev->SetRenderState( D3DRS_ZENABLE,D3DZB_TRUE);
but it only crashes the computer