mesa: Fix glGetTransformFeedbackVarying().
authorEric Anholt <eric@anholt.net>
Tue, 3 Jan 2012 01:08:13 +0000 (17:08 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 5 Jan 2012 17:11:29 +0000 (09:11 -0800)
commit9d36c96d6ec9f2c05c8e0b9ef18c5462cddee8c1
treebbf6423de5fc0064dc86ca35f8b81978d2177eb9
parentcc1d8a466a52ae89080f5dec06c1859235643532
mesa: Fix glGetTransformFeedbackVarying().

The current implementation was totally broken -- it was looking in an
unpopulated structure for varyings, and trying to do so using the
current list of varying names, not the list used at link time.

v2: Fix leaking of memory into the program per re-link.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/linker.cpp
src/mesa/main/mtypes.h
src/mesa/main/transformfeedback.c