From: Felix Kuehling Date: Sun, 29 Feb 2004 20:43:54 +0000 (+0000) Subject: Corrected the maximum vertex size argument of _tnl_init_vertices. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cac8d425a8147210dafaa25cefd7becb9e23c446;p=mesa.git Corrected the maximum vertex size argument of _tnl_init_vertices. --- diff --git a/src/mesa/drivers/dri/savage/savagetris.c b/src/mesa/drivers/dri/savage/savagetris.c index 9d546bbf5da..8e9f33d27d4 100644 --- a/src/mesa/drivers/dri/savage/savagetris.c +++ b/src/mesa/drivers/dri/savage/savagetris.c @@ -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; }