vo_opengl: minor coding style adjustment

This commit is contained in:
wm4 2016-03-24 21:23:22 +01:00
parent da015d9d00
commit a76f3e8e46
1 changed files with 4 additions and 3 deletions

View File

@ -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)"