nouveau: oops, build attrib map after we know how the final shader will look..

This commit is contained in:
Ben Skeggs 2007-01-29 17:08:45 +11:00
parent 2d8b316109
commit de0cf18b09
1 changed files with 2 additions and 2 deletions

View File

@ -839,14 +839,14 @@ nouveau_shader_pass0(GLcontext *ctx, nouveauShader *nvs)
case GL_VERTEX_PROGRAM_ARB:
nvs->func = &nmesa->VPfunc;
pass0_build_attrib_map(nvs, vp);
if (vp->IsPositionInvariant)
_mesa_insert_mvp_code(ctx, vp);
#if 0
if (IS_FIXEDFUNCTION_PROG && CLIP_PLANES_USED)
pass0_insert_ff_clip_planes();
#endif
pass0_build_attrib_map(nvs, vp);
break;
case GL_FRAGMENT_PROGRAM_ARB:
nvs->func = &nmesa->FPfunc;