mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +00:00
(iOS) Fix aspect ratio of duped frames
This commit is contained in:
parent
9add01d0f1
commit
c33c634dc4
8
gfx/gl.c
8
gfx/gl.c
@ -1363,6 +1363,10 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
|||||||
gl_update_resize(gl);
|
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.
|
if (frame) // Can be NULL for frame dupe / NULL render.
|
||||||
{
|
{
|
||||||
gl->tex_index = (gl->tex_index + 1) & TEXTURES_MASK;
|
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);
|
RARCH_PERFORMANCE_START(copy_frame);
|
||||||
gl_copy_frame(gl, frame, width, height, pitch);
|
gl_copy_frame(gl, frame, width, height, pitch);
|
||||||
RARCH_PERFORMANCE_STOP(copy_frame);
|
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
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user