Commit 398d9abf authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Felix Paul Kühne

ios2: clean opengl buffers only in active state

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent e6608519
......@@ -339,7 +339,8 @@ static picture_pool_t *PicturePool(vout_display_t *vd, unsigned requested_count)
static int OpenglESClean(vlc_gl_t *gl)
{
vout_display_sys_t *sys = (vout_display_sys_t *)gl->sys;
[sys->glESView resetBuffers];
if (likely([sys->glESView isAppActive]))
[sys->glESView resetBuffers];
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment