diff options
Diffstat (limited to 'src/gallium/tests/graw/quad-sample.c')
-rw-r--r-- | src/gallium/tests/graw/quad-sample.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/quad-sample.c b/src/gallium/tests/graw/quad-sample.c index 712ff515bef..4703b83db0e 100644 --- a/src/gallium/tests/graw/quad-sample.c +++ b/src/gallium/tests/graw/quad-sample.c @@ -100,10 +100,11 @@ static void set_vertices( void ) vbuf.stride = sizeof( struct vertex ); vbuf.buffer_offset = 0; - vbuf.buffer = screen->user_buffer_create(screen, - vertices, - sizeof(vertices), - PIPE_BIND_VERTEX_BUFFER); + vbuf.buffer = pipe_buffer_create_with_data(ctx, + PIPE_BIND_VERTEX_BUFFER, + PIPE_USAGE_STATIC, + sizeof(vertices), + vertices); ctx->set_vertex_buffers(ctx, 1, &vbuf); } |