summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.c')
-rw-r--r--src/mesa/pipe/draw/draw_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index 532c9c3682..a808fb7777 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -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 );
}