From: Brian Date: Thu, 20 Mar 2008 20:26:51 +0000 (-0600) Subject: gallium: use sizeof(vertex buffer) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18be9a588acb46dad52321c91eab9927bc332756;p=mesa.git gallium: use sizeof(vertex buffer) --- diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index 5824843069f..b84752e0b49 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.c +++ b/src/gallium/auxiliary/util/u_gen_mipmap.c @@ -751,7 +751,7 @@ util_create_gen_mipmap(struct pipe_context *pipe, ctx->vbuf = pipe->winsys->buffer_create(pipe->winsys, 32, PIPE_BUFFER_USAGE_VERTEX, - 4 * 2 * 4 * sizeof(float)); + sizeof(ctx->vertices)); if (!ctx->vbuf) { FREE(ctx); return NULL;