[vlc-devel] [PATCH 4/8] opengl: add assert to check gl callbacks

Thomas Guillem thomas at gllm.fr
Wed May 23 09:19:24 CEST 2018


---
 src/video_output/opengl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c
index 481df220cb..9852af7f9e 100644
--- a/src/video_output/opengl.c
+++ b/src/video_output/opengl.c
@@ -78,6 +78,8 @@ vlc_gl_t *vlc_gl_Create(struct vout_window_t *wnd, unsigned flags,
         vlc_object_release(gl);
         return NULL;
     }
+    assert(gl->makeCurrent && gl->releaseCurrent && gl->swap
+        && gl->getProcAddress);
     atomic_init(&glpriv->ref_count, 1);
 
     return &glpriv->gl;
-- 
2.17.0



More information about the vlc-devel mailing list