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)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:41 +0000 (18:38 +0100)
commitb7af6550b1201f8883823c9fece85fedf1a49a92
tree8288890e2166843bce3e14be6ca701a4aa03c876
parent738d1ae3b59b073605c7fb58ec6f0a85a185ffd3
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>
(cherry picked from commit 7c2060f0f08134e8c4ea00af94f59c18f30d05e2)
src/mesa/main/shaderapi.c