From: Luca Barbieri Date: Wed, 18 Aug 2010 10:52:57 +0000 (+0200) Subject: glsl: add missing ambient field to gl_LightModel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3e3793c325e36366165a5d1403a8c406ff200db;p=mesa.git glsl: add missing ambient field to gl_LightModel Again, this is a one-element struct that was incorrectly missing the field. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index fe2d8982d0b..58324944fe8 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1076,7 +1076,7 @@ static const struct { {"gl_LightSource", "quadraticAttenuation", {STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_ZZZZ, true}, - {"gl_LightModel", NULL, + {"gl_LightModel", "ambient", {STATE_LIGHTMODEL_AMBIENT, 0}, SWIZZLE_XYZW, false}, {"gl_FrontLightModelProduct", "sceneColor",