summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_context.h
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2011-03-11 23:20:44 +0100
committerDaniel Vetter <[email protected]>2011-03-12 20:31:30 +0100
commit06713a40798d97aa520b119731418ff16a92e4ba (patch)
treeeb63474c3734b60160208ac1d4937dd41af699a7 /src/gallium/drivers/i915/i915_context.h
parent1a79064da12a8be71dca7656e5eebc4b85d2b35f (diff)
i915g: fix use after free
Pipe templates should be copied if still needed after the create call completes. Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_context.h')
-rw-r--r--src/gallium/drivers/i915/i915_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_context.h b/src/gallium/drivers/i915/i915_context.h
index 96abaf3f23a..62becbcccbf 100644
--- a/src/gallium/drivers/i915/i915_context.h
+++ b/src/gallium/drivers/i915/i915_context.h
@@ -188,7 +188,7 @@ struct i915_rasterizer_state {
unsigned LIS7;
unsigned sc[1];
- const struct pipe_rasterizer_state *templ;
+ struct pipe_rasterizer_state templ;
union { float f; unsigned u; } ds[2];
};