projects
/
profile
/
ivi
/
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
7e6a951
..
d5d7d40
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 );
}