Commit 02223328 authored by Thomas Guillem's avatar Thomas Guillem

opengl: add assert to check gl callbacks

parent d114a2ff
......@@ -78,6 +78,8 @@ vlc_gl_t *vlc_gl_Create(struct vout_window_t *wnd, unsigned flags,
return NULL;
assert(gl->makeCurrent && gl->releaseCurrent && gl->swap
&& gl->getProcAddress);
atomic_init(&glpriv->ref_count, 1);
return &glpriv->gl;
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