mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
fix state.light[n].spot.direction.w value (bug 3083)
This commit is contained in:
parent
8d51bbf2a3
commit
52bf005425
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue