Don't build passthrough shader on <NV40
authorBen Skeggs <darktama@iinet.net.au>
Sun, 17 Dec 2006 03:38:21 +0000 (03:38 +0000)
committerBen Skeggs <darktama@iinet.net.au>
Sun, 17 Dec 2006 03:38:21 +0000 (03:38 +0000)
src/mesa/drivers/dri/nouveau/nouveau_shader.c

index 9a09f43d5819fd8a41b78b2304d61e9c93e054ff..dc366b36c09683590c1a4a083fa6f0f8ea655a56 100644 (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;