[vlc-commits] vout/opengl: drop support for PL_API_VER < 4

Niklas Haas git at videolan.org
Wed Nov 7 17:09:50 CET 2018


vlc | branch: master | Niklas Haas <git at haasn.xyz> | Mon Oct  1 16:35:01 2018 +0200| [234298580c792e83bb810165df9ae8755bd06c27] | committer: Thomas Guillem

vout/opengl: drop support for PL_API_VER < 4

Since the minimum libplacebo version has been bumped for the vulkan
vout, we can safely drop the cases for old API versions.

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

 modules/video_output/opengl/fragment_shaders.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
index 52af4939a0..f58b4467b6 100644
--- a/modules/video_output/opengl/fragment_shaders.c
+++ b/modules/video_output/opengl/fragment_shaders.c
@@ -399,18 +399,10 @@ tc_base_prepare_shader(const opengl_tex_converter_t *tc,
             continue;
 
         struct pl_shader_var sv = res->variables[i];
-#if PL_API_VER >= 4
         struct pl_var var = sv.var;
         // libplacebo doesn't need anything else anyway
         if (var.type != PL_VAR_FLOAT)
             continue;
-#else
-        struct ra_var var = sv.var;
-        // libplacebo doesn't need anything else anyway
-        if (var.type != RA_VAR_FLOAT)
-            continue;
-#endif
-
         if (var.dim_m > 1 && var.dim_m != var.dim_v)
             continue;
 
@@ -613,11 +605,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
         tc->uloc.pl_vars = calloc(res->num_variables, sizeof(GLint));
         for (int i = 0; i < res->num_variables; i++) {
             struct pl_shader_var sv = res->variables[i];
-#if PL_API_VER >= 4
             const char *glsl_type_name = pl_var_glsl_type_name(sv.var);
-#else
-            const char *glsl_type_name = ra_var_glsl_type_name(sv.var);
-#endif
             ADDF("uniform %s %s;\n", glsl_type_name, sv.var.name);
         }
 



More information about the vlc-commits mailing list