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 9a09f43..dc366b3 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;