<html><head></head><body>Err, this is a runtime feature. You can't test it at build time AFAIK.<br><br><div class="gmail_quote">Le 23 mai 2018 10:19:21 GMT+03:00, Thomas Guillem <thomas@gllm.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Since the GL display now depends on getProcAddress().<br>---<br> modules/video_output/glx.c | 10 ++++------<br> 1 file changed, 4 insertions(+), 6 deletions(-)<br><br>diff --git a/modules/video_output/glx.c b/modules/video_output/glx.c<br>index cb5d53b7db..17188f24b2 100644<br>--- a/modules/video_output/glx.c<br>+++ b/modules/video_output/glx.c<br>@@ -68,11 +68,7 @@ static void SwapBuffers (vlc_gl_t *gl)<br> static void *GetSymbol(vlc_gl_t *gl, const char *procname)<br> {<br> (void) gl;<br>-#ifdef GLX_ARB_get_proc_address<br> return glXGetProcAddressARB ((const GLubyte *)procname);<br>-#else<br>- return NULL;<br>-#endif<br> }<br> <br> static bool CheckGLX (vlc_object_t *vd, Display *dpy)<br>@@ -117,6 +113,10 @@ static int Open (vlc_object_t *obj)<br> {<br> vlc_gl_t *gl = (vlc_gl_t *)obj;<br> <br>+#ifndef GLX_ARB_get_proc_address<br>+ return VLC_EGENERIC;<br>+#endif<br>+<br> if (gl->surface->type != VOUT_WINDOW_TYPE_XID || !vlc_xlib_init (obj))<br> return VLC_EGENERIC;<br> <br>@@ -209,7 +209,6 @@ static int Open (vlc_object_t *obj)<br> gl->swap = SwapBuffers;<br> gl->getProcAddress = GetSymbol;<br> <br>-#ifdef GLX_ARB_get_proc_address<br> bool is_swap_interval_set = false;<br> <br> MakeCurrent (gl);<br>@@ -235,7 +234,6 @@ static int Open (vlc_object_t *obj)<br> }<br> # endif<br> ReleaseCurrent (gl);<br>-#endif<br> <br> /* XXX: Prevent other gl backends (like EGL) to be opened within the same<br> * X11 window instance. Indeed, using EGL after GLX on the same X11 window</pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>