fixed runtime error when trying to create GLES 3  context on iOS 6 or below