mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gallium: use sizeof(vertex buffer)
This commit is contained in:
parent
3aa8c660ff
commit
18be9a588a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue