diff options
author | Brian Paul <[email protected]> | 2004-02-04 15:44:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-02-04 15:44:53 +0000 |
commit | b19cb627e002ec06dc92ab42c8107a3e34f2d181 (patch) | |
tree | 5fc83044b7df9b68908f07483e890bc2c0901e11 /src/mesa/main/nvvertexec.c | |
parent | 72aeea4eea1454efcdd78908343bbebd99ebcc01 (diff) |
fix stores to vertex state program registers
Diffstat (limited to 'src/mesa/main/nvvertexec.c')
-rw-r--r-- | src/mesa/main/nvvertexec.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/main/nvvertexec.c b/src/mesa/main/nvvertexec.c index fd1519e9a87..9663b38157d 100644 --- a/src/mesa/main/nvvertexec.c +++ b/src/mesa/main/nvvertexec.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.0 + * Version: 6.0.1 * * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * @@ -326,8 +326,16 @@ store_vector4( const struct vp_dst_register *dest, case PROGRAM_OUTPUT: dst = state->Outputs[dest->Index]; break; + case PROGRAM_ENV_PARAM: + { + /* a slight hack */ + GET_CURRENT_CONTEXT(ctx); + dst = ctx->VertexProgram.Parameters[dest->Index]; + } + break; default: - _mesa_problem(NULL, "Invalid register file in fetch_vector1(vp)"); + _mesa_problem(NULL, "Invalid register file in store_vector4(file=%d)", + dest->File); return; } |