summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-20 14:26:51 -0600
committerBrian <[email protected]>2008-03-20 15:04:08 -0600
commit18be9a588acb46dad52321c91eab9927bc332756 (patch)
treea025a071361f9d51185158bb422d3bf4834d53a3
parent3aa8c660ffa9763dbdfdf2d75e991a08e41c29b6 (diff)
gallium: use sizeof(vertex buffer)
-rw-r--r--src/gallium/auxiliary/util/u_gen_mipmap.c2
1 files changed, 1 insertions, 1 deletions
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;