[vlc-commits] opengl: try to load GL functions from GLES2

Thomas Guillem git at videolan.org
Wed Nov 22 16:12:59 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Nov 22 16:12:32 2017 +0100| [3d81768c9e365b012e9e8faae4d92c52461e55dd] | committer: Thomas Guillem

opengl: try to load GL functions from GLES2

These functions can be available via an extension.

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

 modules/video_output/opengl/vout_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index f88719829b..21128b3d28 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -763,7 +763,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
 } while(0)
 #if defined(USE_OPENGL_ES2)
 #define GET_PROC_ADDR(name) GET_PROC_ADDR_CORE(name)
-#define GET_PROC_ADDR_CORE_GL(name) vgl->vt.name = NULL /* GL only functions (not GLES) */
+#define GET_PROC_ADDR_CORE_GL(name) GET_PROC_ADDR_EXT(name, false) /* optional for GLES */
 #else
 #define GET_PROC_ADDR(name) GET_PROC_ADDR_EXT(name, true)
 #define GET_PROC_ADDR_CORE_GL(name) GET_PROC_ADDR_CORE(name)



More information about the vlc-commits mailing list