summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-16 18:16:11 +0100
committerMichal Krol <[email protected]>2010-01-16 18:18:09 +0100
commitdee52d5bd31c7bd70883fd7fe496445bb49aad1f (patch)
tree282d850f8e3df30397605ed72902fdfc58266286 /src/gallium/state_trackers/vega
parent83387cb6c42e283440e0d1e592fbe3c93a6622c7 (diff)
gallium: Fix uninitialized instance divisor and index.
Diffstat (limited to 'src/gallium/state_trackers/vega')
-rw-r--r--src/gallium/state_trackers/vega/polygon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/polygon.c b/src/gallium/state_trackers/vega/polygon.c
index b6d282d803b..d385ee567fa 100644
--- a/src/gallium/state_trackers/vega/polygon.c
+++ b/src/gallium/state_trackers/vega/polygon.c
@@ -293,6 +293,7 @@ static void draw_polygon(struct vg_context *ctx,
/* tell pipe about the vertex attributes */
velement.src_offset = 0;
+ velement.instance_divisor = 0;
velement.vertex_buffer_index = 0;
velement.src_format = PIPE_FORMAT_R32G32_FLOAT;
velement.nr_components = COMPONENTS;