Don't build passthrough shader on <NV40

This commit is contained in:
Ben Skeggs 2006-12-17 03:38:21 +00:00
parent de947e8a5b
commit 53d40646bd

View file

@ -245,7 +245,8 @@ nouveauShaderInitFuncs(GLcontext * ctx)
/* Build a vertex program that simply passes through all attribs.
* Needed to do swtcl on nv40
*/
nvsBuildPassthroughVP(ctx);
if (nmesa->screen->card->type >= NV_40)
nvsBuildPassthroughVP(ctx);
ctx->Const.VertexProgram.MaxNativeInstructions = nmesa->VPfunc.MaxInst;
ctx->Const.VertexProgram.MaxNativeAluInstructions = nmesa->VPfunc.MaxInst;