glsl: Delete symbol table in post-link shaders
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 30 Sep 2011 21:21:10 +0000 (14:21 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 4 Oct 2011 19:33:28 +0000 (12:33 -0700)
commit7bbcc0b832b02f9da6365ec6a86a0167cf75d8a8
treefaa48eeceeebf252d5c10cb688aec5eaa44fe4f9
parentefd027a8b5f4c874a9286fcaf8cc0df7ea3605a8
glsl: Delete symbol table in post-link shaders

The symbol table in the linked shaders may contain references to
variables that were removed (e.g., unused uniforms).  Since it may
contain junk, there is no possible valid use.  Delete it and set the
pointer to NULL.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp