diff options
author | Keith Whitwell <[email protected]> | 2008-05-24 13:23:06 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-24 13:23:06 +0100 |
commit | e1590abb17f1effd92c136207f363de6cf52df18 (patch) | |
tree | ca31ce566f2e421264e0dea7214976c49c89f2b8 /src/mesa/shader/prog_statevars.c | |
parent | a2b1c46535d02bb4cc154f26481eda264a65abe8 (diff) |
mesa: pre-swizzle normal scale state value
Diffstat (limited to 'src/mesa/shader/prog_statevars.c')
-rw-r--r-- | src/mesa/shader/prog_statevars.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_statevars.c b/src/mesa/shader/prog_statevars.c index 37bd17ba4a0..44fbfdcd041 100644 --- a/src/mesa/shader/prog_statevars.c +++ b/src/mesa/shader/prog_statevars.c @@ -397,7 +397,11 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[], case STATE_INTERNAL: switch (state[1]) { case STATE_NORMAL_SCALE: - ASSIGN_4V(value, ctx->_ModelViewInvScale, 0, 0, 1); + ASSIGN_4V(value, + ctx->_ModelViewInvScale, + ctx->_ModelViewInvScale, + ctx->_ModelViewInvScale, + 1); return; case STATE_TEXRECT_SCALE: { |