mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
replace memcpy() with assignment, better type safety
This commit is contained in:
parent
74e58c5b82
commit
8339ca7d1e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue