[Mesa-dev] [PATCH 3/3] glsl: add missing ambient field to gl_LightModel

Luca Barbieri luca at luca-barbieri.com
Wed Aug 18 03:52:57 PDT 2010


Again, this is a one-element struct that was incorrectly missing the
field.
---
 src/mesa/program/ir_to_mesa.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 825c6f4..d9f431d 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",
-- 
1.7.0.4



More information about the mesa-dev mailing list