ios: Reset the opengl viewport every frame, seems the GL driver resets it...

This commit is contained in:
meancoot 2013-02-11 06:12:43 -05:00
parent 546058c704
commit 7096b0ac5e

View File

@ -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]);