I have a 480x320 NSOpenGLView that I'd like to scale up to 960x640, but in a way that pixels appear as twice the size (and sharp).
If I call
[myglview setFrame:CGRectMake(0,0,960,640)];
the view scales up to the desired size, but the pixels rendered by OpenGL calls are still at the native resolution.
How can I scale up the GL view, pixels' size included?