From: Brian Paul Date: Wed, 20 Apr 2005 23:47:03 +0000 (+0000) Subject: fix state.light[n].spot.direction.w value (bug 3083) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52bf0054258a2b5220e2f93a2f366954a70b6f82;p=mesa.git 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 63d28083cc8..faa4889a2ed 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -619,7 +619,8 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[], 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: {