X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fnvvertexec.c;h=9663b38157df1de60c754b704fc925cf69bcea98;hb=263581bba4d61291c54313648063a30c47106f0b;hp=fd1519e9a87681f3520658612069500acdc1d649;hpb=b673fc49b9d3a436c8fde79d1eb238afd72b55de;p=mesa.git 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; }