st/mesa: Initialise vertex element instance divisor to 0.
authorMichal Krol <michal@vmware.com>
Fri, 15 Jan 2010 06:52:18 +0000 (07:52 +0100)
committerMichal Krol <michal@vmware.com>
Fri, 15 Jan 2010 06:52:18 +0000 (07:52 +0100)
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_draw_feedback.c

index 011a8cac0c667334826b1c0982788a0fd4a3d192..b0d5b993a77180092a0bb94f84ef701acd3268fb 100644 (file)
@@ -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
index cfc0caac983e37fb96175718e16356442fd8cca1..0599acc8b6fefdcea95dc8322d12d451e69a4e57 100644 (file)
@@ -177,6 +177,7 @@ st_feedback_draw_vbo(GLcontext *ctx,
       /* common-case setup */
       vbuffers[attr].stride = arrays[mesaAttr]->StrideB; /* in bytes */
       vbuffers[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 =