diff options
author | Kenneth Graunke <[email protected]> | 2010-06-25 13:36:14 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-06-30 13:52:24 -0700 |
commit | c6099a65f8f8310a540f7c19cfc380ad980c9dd7 (patch) | |
tree | f96564947346840b58835f33e4ae8878314f555b /src/glsl/ir_dead_code_local.cpp | |
parent | 953ff1283d3d52e6a6b4850c2b0b574111625010 (diff) |
glsl2: Create new talloc contexts the "right" way.
Diffstat (limited to 'src/glsl/ir_dead_code_local.cpp')
-rw-r--r-- | src/glsl/ir_dead_code_local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_dead_code_local.cpp b/src/glsl/ir_dead_code_local.cpp index 5e197e19484..7a44ec8a4a4 100644 --- a/src/glsl/ir_dead_code_local.cpp +++ b/src/glsl/ir_dead_code_local.cpp @@ -185,7 +185,7 @@ dead_code_local_basic_block(ir_instruction *first, bool *out_progress = (bool *)data; bool progress = false; - void *ctx = talloc(NULL, void*); + void *ctx = talloc_new(NULL); /* Safe looping, since process_assignment */ for (ir = first, ir_next = (ir_instruction *)first->next;; ir = ir_next, ir_next = (ir_instruction *)ir->next) { |