mesa: Fix extra memset in store_tfeedback_info()
authorPaul Berry <stereotype441@gmail.com>
Thu, 5 Jan 2012 21:06:36 +0000 (13:06 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 5 Jan 2012 21:26:48 +0000 (13:26 -0800)
commit1be0fd8c86cac0775fd4451eb332effc70ccdbe5
tree8e466a6529f5ebd9a52742d1fd844e1069ca2290
parenta44d715d2b19dc2f8f48b01144cc38e4e2c5015a
mesa: Fix extra memset in store_tfeedback_info()

Commit 9d36c96d6ec9f2c05c8e0b9ef18c5462cddee8c1 (mesa: Fix
glGetTransformFeedbackVarying()) accidentally added an extra memset()
call to the store_tfeedback_info() function, causing
prog->LinkedTransformFeedback.NumBuffers to be erased.

This patch removes the extra memset and rearranges the other
operations in store_tfeedback_info() to be in the correct order.

Fixes piglit tests "EXT_transform_feedback/api-errors *unbound*"

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/linker.cpp