From 7096b0ac5e60095c4daf58f0ad2bf6c49a7d3d1c Mon Sep 17 00:00:00 2001 From: meancoot Date: Mon, 11 Feb 2013 06:12:43 -0500 Subject: [PATCH] ios: Reset the opengl viewport every frame, seems the GL driver resets it... --- gfx/gl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index 1890cc8c49..c054b6ba5a 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1254,6 +1254,10 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei RARCH_PERFORMANCE_START(copy_frame); gl_copy_frame(gl, frame, width, height, pitch); RARCH_PERFORMANCE_STOP(copy_frame); + +#ifdef IOS // Apparently the viewport is lost each frame, thanks apple. + gl_set_viewport(gl, gl->win_width, gl->win_height, false, true); +#endif } else glBindTexture(GL_TEXTURE_2D, gl->texture[gl->tex_index]);