DEPTH_TEST bug fix