diff options
author | wm4 <wm4@nowhere> | 2014-12-09 22:30:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-09 22:30:49 +0100 |
commit | 2413fc1cba7eaa0f8da0a77501b082e62c31ab52 (patch) | |
tree | 6963743e8e86ca0a38118f5ac430e21decbe6b3e /video | |
parent | 56882eaee4211ba158e82ecbd3da6c760dcc945e (diff) | |
download | mpv-2413fc1cba7eaa0f8da0a77501b082e62c31ab52.tar.bz2 mpv-2413fc1cba7eaa0f8da0a77501b082e62c31ab52.tar.xz |
vo_opengl: make shader text output slightly nicer
It was missing an indentation in some cases.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gl_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |