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 9d546bb..8e9f33d 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;
 }