The OpenGL wiki says that in order to use stencil buffer attachment with depth buffer in FBO one needs to create the render buffer with format of the type GL_DEPTH24_STENCIL8, as it seems like GL_STENCIL_INDEXX aren't implemented.
What I don't understand is whether such a buffer is also depth buffer if I set it as GL_DEPTH_STENCIL_ATTACHMENT? Or should I still create separate depth render buffer with formats (GL_DEPTH_COMPONENTXX)?