vout_opengl: update for libplacebo 0.6 API
authorNiklas Haas <git@haasn.xyz>
Fri, 28 Sep 2018 17:18:44 +0000 (19:18 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Thu, 11 Oct 2018 16:53:22 +0000 (17:53 +0100)
This removed a superfluous field from the pl_shader_alloc signature.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
(cherry picked from commit b90995ef08c2d72a0222c527e1ef3d586d00bccd)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Gbp-Pq: Name 0003-vout_opengl-update-for-libplacebo-0.6-API.patch

modules/video_output/opengl/vout_helper.c

index 4ff70adce903bb651bc792b7b5a8ef7fa2c2afae..919560e603931217cc4e9a7f9f1da6bc421b22e6 100644 (file)
@@ -627,8 +627,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