Make depth depend on QGLFormat