Fix #31511: GLSL preview is much darker than F12 results

A problem caused by Harmony branch code. A value was being set improperly for the GLSL shader.
This commit is contained in:
Daniel Stokes 2012-05-20 21:19:55 +00:00
parent 2d2d36fe3b
commit deac41506f

@ -708,7 +708,7 @@ static void shade_one_light(GPUShadeInput *shi, GPUShadeResult *shr, GPULamp *la
i = is;
GPU_link(mat, "shade_visifac", i, visifac, shi->refl, &i);
GPU_link(mat, "shade_mul_value", i, GPU_dynamic_uniform(lamp->dyncol, GPU_DYNAMIC_LAMP_DYNCOL, lamp->ob), &lcol);
GPU_link(mat, "set_value", GPU_dynamic_uniform(lamp->dyncol, GPU_DYNAMIC_LAMP_DYNCOL, lamp->ob), &lcol);
shade_light_textures(mat, lamp, &lcol);
#if 0