diff options
author | Michal Krol <[email protected]> | 2010-01-15 07:52:18 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-15 07:52:18 +0100 |
commit | 6664a6dd7fb701da26e04559bd8110703a61fd8f (patch) | |
tree | a3daf03d9011d3543cf5fbd87927faa00b440781 /src/mesa/state_tracker/st_draw.c | |
parent | f7748d72b46465d807cf4209892d73af62485738 (diff) |
st/mesa: Initialise vertex element instance divisor to 0.
Diffstat (limited to 'src/mesa/state_tracker/st_draw.c')
-rw-r--r-- | src/mesa/state_tracker/st_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 011a8cac0c6..b0d5b993a77 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -365,6 +365,7 @@ setup_interleaved_attribs(GLcontext *ctx, velements[attr].src_offset = (unsigned) (arrays[mesaAttr]->Ptr - offset0); + velements[attr].instance_divisor = 0; velements[attr].vertex_buffer_index = 0; velements[attr].nr_components = arrays[mesaAttr]->Size; velements[attr].src_format = @@ -454,6 +455,7 @@ setup_non_interleaved_attribs(GLcontext *ctx, /* common-case setup */ vbuffer[attr].stride = stride; /* in bytes */ vbuffer[attr].max_index = max_index; + velements[attr].instance_divisor = 0; velements[attr].vertex_buffer_index = attr; velements[attr].nr_components = arrays[mesaAttr]->Size; velements[attr].src_format |