[vlc-commits] opengl: disable libplacebo for subpics programs

Thomas Guillem git at videolan.org
Fri Nov 3 21:33:26 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov  3 21:33:21 2017 +0100| [080d54c9449a17d4011d659d1d3272f44e420f0a] | committer: Thomas Guillem

opengl: disable libplacebo for subpics programs

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

 modules/video_output/opengl/vout_helper.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 76f11645e9..43ba71c129 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -614,13 +614,16 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
 
 #ifdef HAVE_LIBPLACEBO
     // create the main libplacebo context
-    tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
-        .log_cb    = log_cb,
-        .log_priv  = tc,
-        .log_level = PL_LOG_INFO,
-    });
-    if (tc->pl_ctx)
-        tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
+    if (!subpics)
+    {
+        tc->pl_ctx = pl_context_create(PL_API_VER, &(struct pl_context_params) {
+            .log_cb    = log_cb,
+            .log_priv  = tc,
+            .log_level = PL_LOG_INFO,
+        });
+        if (tc->pl_ctx)
+            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
+    }
 #endif
 
     int ret;



More information about the vlc-commits mailing list