fix state.light[n].spot.direction.w value (bug 3083)

This commit is contained in:
Brian Paul 2005-04-20 23:47:03 +00:00
parent 8d51bbf2a3
commit 52bf005425
1 changed files with 2 additions and 1 deletions

View File

@ -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:
{