Hello I am writing an example OpenGLES app, if I setup openGL via the view's initWithCode:(NSCoder *) coder
method, the call of
glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &_backingWidth);
returns 960x480 for iPad air.
But if I setup openGL in the view's -(void) layoutSubviews
method, it will return 2048x1536,
I can not understand why they return different. can any expert explain?