aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_copy_propagation.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-06-25 13:36:14 -0700
committerIan Romanick <[email protected]>2010-06-30 13:52:24 -0700
commitc6099a65f8f8310a540f7c19cfc380ad980c9dd7 (patch)
treef96564947346840b58835f33e4ae8878314f555b /src/glsl/ir_copy_propagation.cpp
parent953ff1283d3d52e6a6b4850c2b0b574111625010 (diff)
glsl2: Create new talloc contexts the "right" way.
Diffstat (limited to 'src/glsl/ir_copy_propagation.cpp')
-rw-r--r--src/glsl/ir_copy_propagation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_copy_propagation.cpp b/src/glsl/ir_copy_propagation.cpp
index a02852ed0cc..f502f5e0b06 100644
--- a/src/glsl/ir_copy_propagation.cpp
+++ b/src/glsl/ir_copy_propagation.cpp
@@ -225,7 +225,7 @@ copy_propagation_basic_block(ir_instruction *first,
bool *out_progress = (bool *)data;
bool progress = false;
- void *ctx = talloc(NULL, void*);
+ void *ctx = talloc_new(NULL);
for (ir = first;; ir = (ir_instruction *)ir->next) {
ir_assignment *ir_assign = ir->as_assignment();