gallium: change draw_vertex_shader->state from pointer to struct
authorBrian <brian@poulsbo.localnet.net>
Wed, 12 Mar 2008 19:20:29 +0000 (13:20 -0600)
committerBrian <brian@poulsbo.localnet.net>
Wed, 12 Mar 2008 19:20:29 +0000 (13:20 -0600)
commit12ab5f97013e398b9f6485b97d6691c3c170447a
treed4de4f6ef45233b0395fa65a6244c308a20aa830
parentba75e82b6ebaf88dd2e4a8f764b2d296d715bf8a
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.
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_vs_exec.c
src/gallium/auxiliary/draw/draw_vs_sse.c