Commit 26a023d8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

glx: add missing surface type check

parent 377376e0
......@@ -101,7 +101,7 @@ static int Open (vlc_object_t *obj)
{
vlc_gl_t *gl = (vlc_gl_t *)obj;
if (!vlc_xlib_init (obj))
if (gl->surface->type != VOUT_WINDOW_TYPE_XID || !vlc_xlib_init (obj))
return VLC_EGENERIC;
/* Initialize GLX display */
......
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