diff options
author | Roland Scheidegger <[email protected]> | 2010-02-17 16:44:38 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-02-17 16:44:38 +0100 |
commit | 464a72dd4154f314e08c9d0c4d07417e2bf255f0 (patch) | |
tree | 182319c2a6a98b69c54bccb6c699b3f1090e352b /src/gallium/state_trackers/vega | |
parent | c2ad9e380121d43f8ac066b590f9929a56bd1b0f (diff) |
gallium: remove redundant nr_components field from pipe_vertex_element
This is a property of the associated src_format pipe format.
Hence use util_format_get_nr_components to query this when necessary instead.
Diffstat (limited to 'src/gallium/state_trackers/vega')
-rw-r--r-- | src/gallium/state_trackers/vega/polygon.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/polygon.c b/src/gallium/state_trackers/vega/polygon.c index c06dbf52069..96fbbfc85a1 100644 --- a/src/gallium/state_trackers/vega/polygon.c +++ b/src/gallium/state_trackers/vega/polygon.c @@ -296,7 +296,6 @@ static void draw_polygon(struct vg_context *ctx, velement.instance_divisor = 0; velement.vertex_buffer_index = 0; velement.src_format = PIPE_FORMAT_R32G32_FLOAT; - velement.nr_components = COMPONENTS; pipe->set_vertex_elements(pipe, 1, &velement); /* draw */ |