[vlc-commits] opengl: add assert to check gl callbacks
Thomas Guillem
git at videolan.org
Wed May 23 12:45:14 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed May 23 08:51:29 2018 +0200| [022233281c4750bfa4fad683863146a282353471] | committer: Thomas Guillem
opengl: add assert to check gl callbacks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=022233281c4750bfa4fad683863146a282353471
---
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;
More information about the vlc-commits
mailing list