projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d51bbf
)
fix state.light[n].spot.direction.w value (bug 3083)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 20 Apr 2005 23:47:03 +0000
(23:47 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 20 Apr 2005 23:47:03 +0000
(23:47 +0000)
src/mesa/shader/program.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/program.c
b/src/mesa/shader/program.c
index 63d28083cc859db8fcd4d5ff1042baa90b37cf78..faa4889a2edee5eddfee8522bae7ed963dcdd02d 100644
(file)
--- 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:
{