diff options
author | Brian Paul <[email protected]> | 2006-11-15 23:38:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-11-15 23:38:02 +0000 |
commit | 0c6723aee564a7b320ca122c3c9b003c863cc714 (patch) | |
tree | b7bf0782f986371da4deab676ced10229391d105 /src/mesa/main/texenvprogram.c | |
parent | 699a33ea77ecd164d7435811258eee96bd37aaa2 (diff) |
Add a size parameter to _mesa_add_unnamed_constant() and
_mesa_add_named_constant() to indicate vector size (1, 2, 3 or 4).
Always 4 for now...
Diffstat (limited to 'src/mesa/main/texenvprogram.c')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index c99ff5cdc46..5329719cbbb 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -575,7 +575,7 @@ static struct ureg register_const4f( struct texenv_fragment_program *p, values[1] = s1; values[2] = s2; values[3] = s3; - idx = _mesa_add_unnamed_constant( p->program->Base.Parameters, values ); + idx = _mesa_add_unnamed_constant( p->program->Base.Parameters, values, 4 ); return make_ureg(PROGRAM_STATE_VAR, idx); } |