From 8339ca7d1e9a3fe90f46e6e81f7ec8574d121072 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 17 Aug 2007 12:40:35 -0600 Subject: replace memcpy() with assignment, better type safety --- src/mesa/pipe/draw/draw_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/pipe/draw/draw_context.c') diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index 7e6a95127a..d5d7d408de 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 ); } -- cgit v1.2.3