Direct3D problem solved