mirror of https://github.com/mpv-player/mpv
vo_opengl: minor coding style adjustment
This commit is contained in:
parent
da015d9d00
commit
a76f3e8e46
|
@ -991,11 +991,12 @@ void gl_sc_gen_shader_and_reset(struct gl_shader_cache *sc)
|
||||||
ADD_BSTR(frag, *frag_vaos);
|
ADD_BSTR(frag, *frag_vaos);
|
||||||
for (int n = 0; n < sc->num_uniforms; n++) {
|
for (int n = 0; n < sc->num_uniforms; n++) {
|
||||||
struct sc_uniform *u = &sc->uniforms[n];
|
struct sc_uniform *u = &sc->uniforms[n];
|
||||||
if (u->type == UT_buffer)
|
if (u->type == UT_buffer) {
|
||||||
ADD(frag, "uniform %s { %s };\n", u->name, u->v.buffer.text);
|
ADD(frag, "uniform %s { %s };\n", u->name, u->v.buffer.text);
|
||||||
else
|
} else {
|
||||||
ADD(frag, "uniform %s %s;\n", u->glsl_type, u->name);
|
ADD(frag, "uniform %s %s;\n", u->glsl_type, u->name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Additional helpers.
|
// Additional helpers.
|
||||||
ADD(frag, "#define LUT_POS(x, lut_size)"
|
ADD(frag, "#define LUT_POS(x, lut_size)"
|
||||||
|
|
Loading…
Reference in New Issue