fix state.light[n].spot.direction.w value (bug 3083)
This commit is contained in:
@@ -619,7 +619,8 @@ _mesa_fetch_state(GLcontext *ctx, const enum state_index state[],
|
|||||||
value[3] = ctx->Light.Light[ln].SpotExponent;
|
value[3] = ctx->Light.Light[ln].SpotExponent;
|
||||||
return;
|
return;
|
||||||
case STATE_SPOT_DIRECTION:
|
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;
|
return;
|
||||||
case STATE_HALF:
|
case STATE_HALF:
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user