diff options
author | Brian Paul <[email protected]> | 2009-02-21 13:23:04 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-21 13:23:04 -0700 |
commit | 9705cff2033f1771a39ac3bb78eb5fcea522218a (patch) | |
tree | c8f3c7ea9fcab4b8b77f98d5c543e245cb2853a1 /src/mesa/main/ffvertex_prog.c | |
parent | 5b354d39d466e3a463c6766fe06f737aa6e6b7bd (diff) |
mesa: re-org texgen state
New gl_texgen struct allows quite a bit of code reduction.
Diffstat (limited to 'src/mesa/main/ffvertex_prog.c')
-rw-r--r-- | src/mesa/main/ffvertex_prog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index d70b78f2586..42c8cc97c08 100644 --- a/src/mesa/main/ffvertex_prog.c +++ b/src/mesa/main/ffvertex_prog.c @@ -293,16 +293,16 @@ static void make_state_key( GLcontext *ctx, struct state_key *key ) key->unit[i].texgen_mode0 = translate_texgen( texUnit->TexGenEnabled & (1<<0), - texUnit->GenModeS ); + texUnit->GenS.Mode ); key->unit[i].texgen_mode1 = translate_texgen( texUnit->TexGenEnabled & (1<<1), - texUnit->GenModeT ); + texUnit->GenT.Mode ); key->unit[i].texgen_mode2 = translate_texgen( texUnit->TexGenEnabled & (1<<2), - texUnit->GenModeR ); + texUnit->GenR.Mode ); key->unit[i].texgen_mode3 = translate_texgen( texUnit->TexGenEnabled & (1<<3), - texUnit->GenModeQ ); + texUnit->GenQ.Mode ); } } } |