diff options
author | Roland Scheidegger <[email protected]> | 2010-03-01 18:45:25 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-03-01 18:45:25 +0100 |
commit | 1f57069c68f7bf812d4d2e054c5ced3ed72cfa10 (patch) | |
tree | 3d384f503de7e5ab21057667d5cb02f0f31c7ec9 /src/gallium/state_trackers/vega/polygon.c | |
parent | 711476be2904bd16d45b424236d6aefa9a9e6bc9 (diff) |
vega: adapt to new vertex element cso
Diffstat (limited to 'src/gallium/state_trackers/vega/polygon.c')
-rw-r--r-- | src/gallium/state_trackers/vega/polygon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/polygon.c b/src/gallium/state_trackers/vega/polygon.c index 96fbbfc85a1..eef2c1eb876 100644 --- a/src/gallium/state_trackers/vega/polygon.c +++ b/src/gallium/state_trackers/vega/polygon.c @@ -292,11 +292,12 @@ static void draw_polygon(struct vg_context *ctx, pipe->set_vertex_buffers(pipe, 1, &vbuffer); /* tell pipe about the vertex attributes */ + memset(&velement, 0, sizeof(velement)); velement.src_offset = 0; velement.instance_divisor = 0; velement.vertex_buffer_index = 0; velement.src_format = PIPE_FORMAT_R32G32_FLOAT; - pipe->set_vertex_elements(pipe, 1, &velement); + cso_set_vertex_elements(ctx->cso_context, 1, &velement); /* draw */ pipe->draw_arrays(pipe, PIPE_PRIM_TRIANGLE_FAN, |