glsl2: strdup the field names used in dereference_record.
authorEric Anholt <eric@anholt.net>
Wed, 21 Jul 2010 00:17:47 +0000 (17:17 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 21 Jul 2010 00:30:10 +0000 (17:30 -0700)
commitfade78edcbff1e0ae24a1e2c455be2cc7932ee9c
treebc2aea7eab6208e6e666f19d48707c3313c57077
parent21b0dbd79937e9d6787f045af7d60d4b6c649ec8
glsl2: strdup the field names used in dereference_record.

Otherwise, after linking and freeing the old data, the pointer would
dangle.  Partial fix for glsl1-struct*.
src/glsl/ir.cpp