OSDN Git Service

glsl: Free all S-Expressions immediately after reading IR.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Sep 2011 20:05:03 +0000 (13:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 24 Sep 2011 00:12:47 +0000 (17:12 -0700)
commit0d949a51bb44da51cd843abcf6ecddc5e3d3a2f1
treed04a4590b8158d6014c362faca88daea26ecf6d4
parent0fabf8e8dc96a0eb8a9fbbac760d4faceee3af48
glsl: Free all S-Expressions immediately after reading IR.

For some reason I thought subexpressions were chained off the top-level
one.  This isn't the case, so just create a temporary context and free
it.  All of this memory would be eventually freed, but now is freed
much sooner.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_reader.cpp