Move GL_DEPTH_RANGE query to the float queries.
The lighting sample uses VAOs.