title: OpenGL ES 1.1 iOS not sizing properly on retina versus non retina
body: <p>So, I'm having quite a bizarre issue and I'm not sure why. When displaying the following opengl code on a retina screen, I receive the following image: 
  <img src="https://i.stack.imgur.com/gvuh7.png" alt="enter image description here"></p>
  
  <p>while the image I get on a non retina is the following: 
  <img src="https://i.stack.imgur.com/KJc1Z.png" alt="enter image description here"></p>
  
  <p>The coordinate system should be setup normally.. I also noticed that it doesn't seem to generally scale to retina size. When getting the frame from the [UIScreen mainscreen], I'm getting the same value for both retina and non as shown below. Is there a special way I'm suppose to size this?</p>
  
  <pre><code>frame: Origin: x:0.000000 y:0.000000, Size: width:768.000000 height:1024.000000
  </code></pre>
  
  <p><strong>*Edit: The cause was that OpenGL ES 1.1 does not scale to Retina size by itself. When creating the ViewPort you must manually scale the size as such glViewport(0, 0, width * [[UIScreen mainScreen] scale], height * [[UIScreen mainScreen] scale]); 
  This was the simplest method that I could come up with.*</strong> </p>