[vlc-commits] egl_pbuffer: enable if EGL and OpenGL are present

Romain Vimont git at videolan.org
Tue Mar 30 09:44:49 UTC 2021


vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Mon Mar 22 16:06:22 2021 +0100| [d947023bd151c19c2f541ff77358825ceeeb94b3] | committer: Alexandre Janniaux

egl_pbuffer: enable if EGL and OpenGL are present

The filter egl_pbuffer was initially enabled only for Android, because
the default display is always internally refcounted.

Now that the display is managed separately, egl_pbuffer may be enabled
as soon as OpenGL and EGL are available.

Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

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

 modules/video_output/opengl/Makefile.am | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/video_output/opengl/Makefile.am b/modules/video_output/opengl/Makefile.am
index 364acbe87c..3bee347ef0 100644
--- a/modules/video_output/opengl/Makefile.am
+++ b/modules/video_output/opengl/Makefile.am
@@ -101,8 +101,14 @@ libegl_pbuffer_filter_plugin_la_SOURCES = video_filter/egl_pbuffer.c \
 libegl_pbuffer_filter_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) $(EGL_FLAGS)
 libegl_pbuffer_filter_plugin_la_LIBADD = $(EGL_LIBS)
 
+if HAVE_EGL
+if HAVE_GL
+libegl_pbuffer_filter_plugin_la_LIBADD += libvlc_opengl.la $(GL_LIBS)
+vout_LTLIBRARIES += libegl_pbuffer_filter_plugin.la
+endif
 if HAVE_ANDROID
 libegl_pbuffer_filter_plugin_la_LIBADD += libvlc_opengles.la $(GLES2_LIBS)
 libegl_pbuffer_filter_plugin_la_CPPFLAGS += -DUSE_OPENGL_ES2=1
 vout_LTLIBRARIES += libegl_pbuffer_filter_plugin.la
 endif
+endif



More information about the vlc-commits mailing list