Module: Mesa Branch: master Commit: c3e3793c325e36366165a5d1403a8c406ff200db URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3e3793c325e36366165a5d1403a8c406ff200db
Author: Luca Barbieri <l...@luca-barbieri.com> Date: Wed Aug 18 12:52:57 2010 +0200 glsl: add missing ambient field to gl_LightModel 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 fe2d898..5832494 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", _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit