Corrected the maximum vertex size argument of _tnl_init_vertices.
authorFelix Kuehling <fxkuehl@gmx.de>
Sun, 29 Feb 2004 20:43:54 +0000 (20:43 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Sun, 29 Feb 2004 20:43:54 +0000 (20:43 +0000)
src/mesa/drivers/dri/savage/savagetris.c

index 9d546bbf5da34a69a314bdfd26960f3366f0ca0c..8e9f33d27d4fd213d77672ef3dec1a6c7abbe4be 100644 (file)
@@ -901,7 +901,7 @@ void savageInitTriFuncs( GLcontext *ctx )
    tnl->Driver.Render.Interp = _tnl_interp;
 
    _tnl_init_vertices( ctx, ctx->Const.MaxArrayLockSize + 12, 
-                      22 * sizeof(GLfloat) );
+                      (6 + 2*ctx->Const.MaxTextureUnits) * sizeof(GLfloat) );
    
    SAVAGE_CONTEXT(ctx)->verts = (char *)tnl->clipspace.vertex_buf;
 }