From c33c634dc40979b468d063493aa46fbf2c7339df Mon Sep 17 00:00:00 2001 From: meancoot Date: Sun, 7 Apr 2013 19:08:23 -0400 Subject: [PATCH] (iOS) Fix aspect ratio of duped frames --- gfx/gl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/gl.c b/gfx/gl.c index b58b1cffad..cde5abcf36 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1363,6 +1363,10 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei gl_update_resize(gl); } +#ifdef IOS // Apparently the viewport is lost each frame, thanks apple. + gl_set_viewport(gl, gl->win_width, gl->win_height, false, true); +#endif + if (frame) // Can be NULL for frame dupe / NULL render. { gl->tex_index = (gl->tex_index + 1) & TEXTURES_MASK; @@ -1388,10 +1392,6 @@ 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