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,6 +339,7 @@ static picture_pool_t *PicturePool(vout_display_t *vd, unsigned requested_count) ...@@ -339,6 +339,7 @@ static picture_pool_t *PicturePool(vout_display_t *vd, unsigned requested_count)
static int OpenglESClean(vlc_gl_t *gl) static int OpenglESClean(vlc_gl_t *gl)
{ {
vout_display_sys_t *sys = (vout_display_sys_t *)gl->sys; vout_display_sys_t *sys = (vout_display_sys_t *)gl->sys;
if (likely([sys->glESView isAppActive]))
[sys->glESView resetBuffers]; [sys->glESView resetBuffers];
return 0; 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