projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e58c5
)
replace memcpy() with assignment, better type safety
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 17 Aug 2007 18:40:35 +0000
(12:40 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 17 Aug 2007 18:40:35 +0000
(12:40 -0600)
src/mesa/pipe/draw/draw_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_context.c
b/src/mesa/pipe/draw/draw_context.c
index 7e6a95127af877fc213bc4dd7c03558589c5115a..d5d7d408de52032c49d3a3a4f6eb8292ed497028 100644
(file)
--- 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 );
}