gallium: use sizeof(vertex buffer)
authorBrian <brian.paul@tungstengraphics.com>
Thu, 20 Mar 2008 20:26:51 +0000 (14:26 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 20 Mar 2008 21:04:08 +0000 (15:04 -0600)
src/gallium/auxiliary/util/u_gen_mipmap.c

index 5824843069f2d12bd2ec580630c9c5ed307ab65b..b84752e0b49a3c77cd366372158e68745006e74a 100644 (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;