commit | 52bf0054258a2b5220e2f93a2f366954a70b6f82 | [log] [tgz] |
---|---|---|
author | Brian Paul <brian.paul@tungstengraphics.com> | Wed Apr 20 23:47:03 2005 +0000 |
committer | Brian Paul <brian.paul@tungstengraphics.com> | Wed Apr 20 23:47:03 2005 +0000 |
tree | f950f1d5d2c8b413eeac67e1b3bf5b0ae2d7e784 | |
parent | 8d51bbf2a3b4bac379855c84ebeed86c3578d0c6 [diff] [blame] |
fix state.light[n].spot.direction.w value (bug 3083)
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 63d2808..faa4889 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c
@@ -619,7 +619,8 @@ value[3] = ctx->Light.Light[ln].SpotExponent; return; case STATE_SPOT_DIRECTION: - COPY_4V(value, ctx->Light.Light[ln].EyeDirection); + COPY_3V(value, ctx->Light.Light[ln].EyeDirection); + value[3] = ctx->Light.Light[ln]._CosCutoff; return; case STATE_HALF: {