Commit 2ae976d9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

EGL: initialize Xlib

P.S.: I haaaaaaaaaaaaaaate Xlib!!!!
parent a1b3978d
......@@ -92,7 +92,7 @@ libegl_plugin_la_CFLAGS = $(AM_CFLAGS) \
libegl_plugin_la_LIBADD = $(AM_LIBADD) \
$(EGL_LIBS) $(GL_LIBS)
if !HAVE_WIN32
libegl_plugin_la_LIBADD += -ldl
libegl_plugin_la_LIBADD += -ldl $(X_LIBS) $(X_PRE_LIBS) -lX11
endif
libegl_plugin_la_DEPENDENCIES =
EXTRA_LTLIBRARIES += libegl_plugin.la
......
......@@ -33,6 +33,9 @@
#include <vlc_vout_display.h>
#include <vlc_vout_opengl.h>
#include "opengl.h"
#ifdef __unix__
# include <vlc_xlib.h>
#endif
#if USE_OPENGL_ES
# define VLC_API_NAME "OpenGL_ES"
......@@ -139,6 +142,10 @@ static vout_window_t *MakeWindow (vout_display_t *vd, EGLNativeWindowType *id)
*/
static int Open (vlc_object_t *obj)
{
#ifdef __unix__
if (!vlc_xlib_init (obj))
return VLC_EGENERIC;
#endif
vout_display_t *vd = (vout_display_t *)obj;
/* Initialize EGL display */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment