[vlc-commits] vout_opengl: update for libplacebo 0.6 API

Niklas Haas git at videolan.org
Mon Oct 1 11:54:43 CEST 2018


vlc | branch: master | Niklas Haas <git at haasn.xyz> | Fri Sep 28 19:18:44 2018 +0200| [b90995ef08c2d72a0222c527e1ef3d586d00bccd] | committer: Thomas Guillem

vout_opengl: update for libplacebo 0.6 API

This removed a superfluous field from the pl_shader_alloc signature.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_output/opengl/vout_helper.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 33f738f579..89fc1ae9c7 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -629,8 +629,13 @@ opengl_init_program(vout_display_opengl_t *vgl, struct prgm *prgm,
             .log_priv  = tc,
             .log_level = PL_LOG_INFO,
         });
-        if (tc->pl_ctx)
+        if (tc->pl_ctx) {
+#   if PL_API_VER >= 6
+            tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0);
+#   else
             tc->pl_sh = pl_shader_alloc(tc->pl_ctx, NULL, 0, 0);
+#   endif
+        }
     }
 #endif
 



More information about the vlc-commits mailing list