iosopengl-esglkitglkview

How to resolve GLKView viewport issue in iOS


I am trying to display an image using OpenGL ES in iOS. But image is covering only one quadrant of the screen. How can I show it to full screen?


Solution

  • I have found the solution. The problem is with setting the contentScaleFactor of UIView. By default, it is 2.0 for retina displays. So, it should be set to 1.0. Here is the link for more details: UIView ContentScaleFactor