[vlc-commits] ios2: clean opengl buffers only in active state
Gleb Pinigin
git at videolan.org
Sat Aug 24 19:07:53 CEST 2013
vlc | branch: master | Gleb Pinigin <gpinigin at gmail.com> | Sat Aug 24 22:10:08 2013 +0700| [398d9abf74155ea6ad87fd75ed531b6239db2d93] | committer: Felix Paul Kühne
ios2: clean opengl buffers only in active state
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=398d9abf74155ea6ad87fd75ed531b6239db2d93
---
modules/video_output/ios2.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 397be6d..66002dc 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -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;
}
More information about the vlc-commits
mailing list