glsl: add missing ambient field to gl_LightModel
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 18 Aug 2010 10:52:57 +0000 (12:52 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Aug 2010 20:01:09 +0000 (13:01 -0700)
Again, this is a one-element struct that was incorrectly missing the
field.

src/mesa/program/ir_to_mesa.cpp

index fe2d898..5832494 100644 (file)
@@ -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",