Added support for depth and stencil buffers on iOS.