Value seems wrongly rounded and you can't distinguish 0xFFFF from 0xFFFE Instead check that depth is constant for the draw call and the value from the vertex buffer Fix recent regression on GTA (and likely various games)