From 2413fc1cba7eaa0f8da0a77501b082e62c31ab52 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 9 Dec 2014 22:30:49 +0100 Subject: vo_opengl: make shader text output slightly nicer It was missing an indentation in some cases. --- video/out/gl_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video') diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 86d208b503..2b99200f4f 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -846,13 +846,13 @@ static void shader_setup_scaler(char **shader, struct scaler *scaler, int pass) const char *lut_tex = scaler->lut_name; char name[40]; snprintf(name, sizeof(name), "sample_scaler%d", unit); - APPENDF(shader, "#define DEF_SCALER%d \\\n", unit); + APPENDF(shader, "#define DEF_SCALER%d \\\n ", unit); char lut_fn[40]; if (size == 2 || size == 6) { snprintf(lut_fn, sizeof(lut_fn), "weights%d", size); } else { snprintf(lut_fn, sizeof(lut_fn), "weights_scaler%d", unit); - APPENDF(shader, " WEIGHTS_N(%s, %d) \\\n ", lut_fn, size); + APPENDF(shader, "WEIGHTS_N(%s, %d) \\\n ", lut_fn, size); } if (pass != -1) { // The direction/pass assignment is rather arbitrary, but fixed in -- cgit v1.2.3