nevermind solved it, if you use depth testing, you must call glDepthMask(GL_TRUE) before glClear with GL_DEPTH_BUFFER_BIT, otherwise this call won’t work
↧