mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
st/python: add usage parameter to pipe_buffer_create
This is a follow-up to commit eafb7f234d.
Fixes Linux SCons build.
This commit is contained in:
parent
38104a767c
commit
ae11707b83
2 changed files with 3 additions and 2 deletions
|
|
@ -350,6 +350,7 @@ struct st_context {
|
|||
|
||||
vbuf = pipe_buffer_create(screen,
|
||||
PIPE_BIND_VERTEX_BUFFER,
|
||||
PIPE_USAGE_STATIC,
|
||||
size);
|
||||
if(!vbuf)
|
||||
goto error1;
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ struct st_device {
|
|||
}
|
||||
|
||||
struct pipe_resource *
|
||||
buffer_create(unsigned size, unsigned bind = 0) {
|
||||
return pipe_buffer_create($self->screen, bind, size);
|
||||
buffer_create(unsigned size, unsigned usage, unsigned bind = 0) {
|
||||
return pipe_buffer_create($self->screen, bind, usage, size);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue