mirror of https://github.com/mpv-player/mpv
vo_opengl: make shader text output slightly nicer
It was missing an indentation in some cases.
This commit is contained in:
parent
56882eaee4
commit
2413fc1cba
|
@ -846,13 +846,13 @@ static void shader_setup_scaler(char **shader, struct scaler *scaler, int pass)
|
||||||
const char *lut_tex = scaler->lut_name;
|
const char *lut_tex = scaler->lut_name;
|
||||||
char name[40];
|
char name[40];
|
||||||
snprintf(name, sizeof(name), "sample_scaler%d", unit);
|
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];
|
char lut_fn[40];
|
||||||
if (size == 2 || size == 6) {
|
if (size == 2 || size == 6) {
|
||||||
snprintf(lut_fn, sizeof(lut_fn), "weights%d", size);
|
snprintf(lut_fn, sizeof(lut_fn), "weights%d", size);
|
||||||
} else {
|
} else {
|
||||||
snprintf(lut_fn, sizeof(lut_fn), "weights_scaler%d", unit);
|
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) {
|
if (pass != -1) {
|
||||||
// The direction/pass assignment is rather arbitrary, but fixed in
|
// The direction/pass assignment is rather arbitrary, but fixed in
|
||||||
|
|
Loading…
Reference in New Issue