diff options
author | Eric Anholt <[email protected]> | 2010-09-07 16:25:22 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-09-07 16:43:35 -0700 |
commit | 4a867be14378587574b3082071e9fff962d28d12 (patch) | |
tree | f94b86ebd96731cd958d1deb150ca9a846e1ea63 /src/mesa/program/ir_to_mesa.cpp | |
parent | a09a8ec12d76e1fb1583fa99cf9f48246c108d7b (diff) |
ir_to_mesa: Add support for gl_NormalScale.
Bug #30040.
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 4f6535fa479..960d5c7cece 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -703,6 +703,10 @@ static struct statevar_element gl_Fog_elements[] = { {"scale", {STATE_FOG_PARAMS}, SWIZZLE_WWWW}, }; +static struct statevar_element gl_NormalScale_elements[] = { + {NULL, {STATE_NORMAL_SCALE}, SWIZZLE_XXXX}, +}; + #define MATRIX(name, statevar, modifier) \ static struct statevar_element name ## _elements[] = { \ { NULL, { statevar, 0, 0, 0, modifier}, SWIZZLE_XYZW }, \ @@ -808,6 +812,7 @@ static const struct statevar { STATEVAR(gl_TextureMatrixInverseTranspose), STATEVAR(gl_NormalMatrix), + STATEVAR(gl_NormalScale), }; void |