summaryrefslogtreecommitdiff
path: root/src/glsl/main.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-07-08 12:40:52 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-07-08 15:44:19 -0700
commitdfd30ca6a95a7d95835dad78ffe1fba4d1f4ef69 (patch)
tree2f40fbcbd069abb14fc977372e96c73ed35c01e3 /src/glsl/main.cpp
parent25cda5039df0da6c2c65f1cac1bfc750c0c16e82 (diff)
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...)
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r--src/glsl/main.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp
index 782934a8d7..dd43d12474 100644
--- a/src/glsl/main.cpp
+++ b/src/glsl/main.cpp
@@ -124,7 +124,6 @@ compile_shader(struct gl_shader *shader)
state->symbols = new(shader) glsl_symbol_table;
state->info_log = talloc_strdup(shader, "");
state->error = false;
- state->temp_index = 0;
state->loop_or_switch_nesting = NULL;
state->ARB_texture_rectangle_enable = true;