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 fe2d8982d0b36defc0f55c2c386db0cb25c147ed..58324944fe82f43ca7267bf44e9e2ef12b51e3de 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",