summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_context.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-17 12:40:35 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-17 12:40:35 -0600
commit8339ca7d1e9a3fe90f46e6e81f7ec8574d121072 (patch)
treef9550d8812018b40e409bb6c985f947ec90b56cd /src/mesa/pipe/draw/draw_context.c
parent74e58c5b82a15d250f42c9695e3ed61f64faedaf (diff)
replace memcpy() with assignment, better type safety
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 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 );
}