glsl2: Remove generate_temporary and global temporary counter.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 8 Jul 2010 19:40:52 +0000 (12:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 8 Jul 2010 22:44:19 +0000 (15:44 -0700)
commitdfd30ca6a95a7d95835dad78ffe1fba4d1f4ef69
tree2f40fbcbd069abb14fc977372e96c73ed35c01e3
parent25cda5039df0da6c2c65f1cac1bfc750c0c16e82
glsl2: Remove generate_temporary and global temporary counter.

Most places in the code simply use a static name, which works because
names are never used to look up an ir_variable.  generate_temporary is
simply unnecessary (and looks like it would leak memory, and isn't
thread safe...)
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser_extras.h
src/glsl/main.cpp
src/mesa/shader/ir_to_mesa.cpp