vout/macosx: Ensure context exists when calling vout_display_opengl_New
commit0486aecc1913cc77358cbe37be862813a060516e
authorMarvin Scholz <epirat07@gmail.com>
Wed, 28 Dec 2016 16:45:25 +0000 (28 17:45 +0100)
committerThomas Guillem <thomas@gllm.fr>
Thu, 29 Dec 2016 12:48:24 +0000 (29 13:48 +0100)
tree28c67a779247b401689c1b95db9abfe3281dad9a
parent1117ff946a67dfaae27a21b54e2dc679bb500e23
vout/macosx: Ensure context exists when calling vout_display_opengl_New

vout_display_opengl_New seems to require a valid context, therefore we
need to vlc_gl_MakeCurrent before calling it and release it again
afterwards.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/video_output/macosx.m