gallium: use sizeof(vertex buffer)

This commit is contained in:
Brian 2008-03-20 14:26:51 -06:00
parent 3aa8c660ff
commit 18be9a588a

View file

@ -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;