added support for depth buffer
fixed depth buffer init on iOS