Commit f74a7960 authored by David Fuhrmann's avatar David Fuhrmann

caopengllayer: fail if no gl context exists

parent 67bd0e7d
......@@ -164,7 +164,10 @@ static int Open (vlc_object_t *p_this)
if (!sys->cgLayer)
goto bailout;
assert(sys->glContext);
if (!sys->glContext) {
msg_Err(vd, "Have no gl context");
goto bailout;
}
/* Initialize common OpenGL video display */
sys->gl.lock = OpenglLock;
......
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