Fixed weird visualization error. depth test needs to be enabled for drawing 3d shapes.