Fixed depth missmatch on d3d - bugfix