diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-24 16:27:31 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-24 16:29:17 -0600 |
commit | 2ad8692aad0f4ad49643d5f697a036afccdeb9f0 (patch) | |
tree | a3f34c4390cb0022e343128ac199db5dcfc14b10 /src/gallium/drivers/llvmpipe/lp_setup_context.h | |
parent | f0e04b094412d358e913d3d1107d7260047f6fb2 (diff) |
llvmpipe: fix texture reference counting bug
We weren't saving the per-scene texture references at the right point.
Fixes piglit cubemap segfault. The segfault resulted from referencing
texture memory which was prematurely freed because of a missed reference
count.
Fixes fd.o bug 27276.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_context.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_context.h b/src/gallium/drivers/llvmpipe/lp_setup_context.h index 464fb36984..ca0dafab62 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_context.h +++ b/src/gallium/drivers/llvmpipe/lp_setup_context.h @@ -111,6 +111,7 @@ struct lp_setup_context const struct lp_rast_state *stored; /**< what's in the scene */ struct lp_rast_state current; /**< currently set state */ + struct pipe_texture *current_tex[PIPE_MAX_SAMPLERS]; } fs; /** fragment shader constants */ |