diff options
author | Brian <[email protected]> | 2008-03-12 13:20:29 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-12 13:20:29 -0600 |
commit | 12ab5f97013e398b9f6485b97d6691c3c170447a (patch) | |
tree | d4de4f6ef45233b0395fa65a6244c308a20aa830 /src/gallium/auxiliary/draw/draw_private.h | |
parent | ba75e82b6ebaf88dd2e4a8f764b2d296d715bf8a (diff) |
gallium: change draw_vertex_shader->state from pointer to struct
We were sometimes keeping a pointer to a stack-allocated object.
Now make a copy of the pipe_shader_state object.
This should fix some seemingly random memory errors/crashes.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h index 25fa8c09c2f..4147472d451 100644 --- a/src/gallium/auxiliary/draw/draw_private.h +++ b/src/gallium/auxiliary/draw/draw_private.h @@ -133,7 +133,7 @@ struct draw_vertex_shader { /* This member will disappear shortly: */ - const struct pipe_shader_state *state; + struct pipe_shader_state state; struct tgsi_shader_info info; |