summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 5824843069..b84752e0b4 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;