From c725f39baef33c15f10d3fbc4b68569c7115131a Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 4 Jan 2016 16:27:57 +0100 Subject: vo_opengl: fix operation on GLES 2.0 GLSL in GLES 2.0 did not have line continuation in its preprocessor. This broke shader compilation. It also broke subtitle rendering in vo_rpi, which reuses some of the OpenGL code. Line continuation was finally added in GLES 3.0, which is perhaps the reason why ANGLE accepted it. --- video/out/opengl/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index c168cc60eb..0c7e3608a6 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -962,8 +962,8 @@ void gl_sc_gen_shader_and_reset(struct gl_shader_cache *sc) } // Additional helpers. - ADD(frag, "#define LUT_POS(x, lut_size) \\\n"); - ADD(frag, " mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))\n"); + ADD(frag, "#define LUT_POS(x, lut_size)" + " mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))\n"); // custom shader header if (sc->header_text[0]) { -- cgit v1.2.3