aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_draw_upload.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-08 12:21:42 -0600
committerBrian Paul <[email protected]>2009-09-08 12:21:42 -0600
commit8de625c7cf639c583e8bf43acb1214010989bb64 (patch)
tree6e3bff5a95b80b4fee143978c2863f7b2795bf6a /src/mesa/drivers/dri/i965/brw_draw_upload.c
parent18bdb6e712d43632dcd2e73cea68e0b2953fe62e (diff)
i965: fix incorrect test for vertex position attribute
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_draw_upload.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 05079c043af..fd9c3915c43 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -422,7 +422,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
/* Queue the buffer object up to be uploaded in the next pass,
* when we've decided if we're doing interleaved or not.
*/
- if (i == 0) {
+ if (input->attrib == VERT_ATTRIB_POS) {
/* Position array not properly enabled:
*/
if (input->glarray->StrideB == 0) {