mesa: Return 0 for XFB_VARYING_MAX_LENGTH if no varyings
authorMatt Turner <mattst88@gmail.com>
Fri, 23 Nov 2012 08:03:59 +0000 (00:03 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 27 Nov 2012 18:40:49 +0000 (10:40 -0800)
commit7c2060f0f08134e8c4ea00af94f59c18f30d05e2
tree8dbd881de1b352742c2f82006030cdc0d4cdbdc7
parentf65741721bcd7064e428ae2c47811fba150b1480
mesa: Return 0 for XFB_VARYING_MAX_LENGTH if no varyings

v2: Perform this count the same way as elsewhere in this file, per
    Brian Paul's review.

Fixes part of es3conform's transform_feedback_init_defaults test.
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderapi.c