[vlc-commits] opengl: make getProcAddress mandatory

Thomas Guillem git at videolan.org
Wed May 23 12:45:12 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed May 23 08:51:03 2018 +0200| [d114a2ff2baca45b1abdaba0218e08b44de8c8dc] | committer: Thomas Guillem

opengl: make getProcAddress mandatory

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d114a2ff2baca45b1abdaba0218e08b44de8c8dc
---

 include/vlc_opengl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_opengl.h b/include/vlc_opengl.h
index 2a3902c72c..d446f0ac2f 100644
--- a/include/vlc_opengl.h
+++ b/include/vlc_opengl.h
@@ -109,7 +109,7 @@ static inline void vlc_gl_Swap(vlc_gl_t *gl)
 
 static inline void *vlc_gl_GetProcAddress(vlc_gl_t *gl, const char *name)
 {
-    return (gl->getProcAddress != NULL) ? gl->getProcAddress(gl, name) : NULL;
+    return gl->getProcAddress(gl, name);
 }
 
 VLC_API vlc_gl_t *vlc_gl_surface_Create(vlc_object_t *,



More information about the vlc-commits mailing list