replace memcpy() with assignment, better type safety

This commit is contained in:
Brian 2007-08-17 12:40:35 -06:00
parent 74e58c5b82
commit 8339ca7d1e

View file

@ -158,7 +158,7 @@ static void validate_pipeline( struct draw_context *draw )
void draw_set_setup_state( struct draw_context *draw,
const struct pipe_setup_state *setup )
{
memcpy( &draw->setup, setup, sizeof(*setup) );
draw->setup = *setup; /* struct copy */
validate_pipeline( draw );
}