summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2007-01-29 17:08:45 +1100
committerBen Skeggs <[email protected]>2007-01-30 16:39:31 +1100
commitde0cf18b096822cf8e113a46f12740ebeb10f8df (patch)
tree58b7fec158b1004592bd7cb29d8fc8f6854ed1f4 /src/mesa/drivers/dri/nouveau
parent2d8b31610917e5e14a242725b047a21f6d2c14e0 (diff)
nouveau: oops, build attrib map after we know how the final shader will look..
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_shader_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_shader_0.c b/src/mesa/drivers/dri/nouveau/nouveau_shader_0.c
index b96cf959394..9f32cd8c118 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_shader_0.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_shader_0.c
@@ -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;