[vlc-devel] [PATCH 4/7] egl_pbuffer: enable if EGL and OpenGL are present

Romain Vimont rom1v at videolabs.io
Wed Mar 3 17:36:37 UTC 2021


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.
---
 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
-- 
2.30.1



More information about the vlc-devel mailing list