In softpipe_set_viewport() use ordinary (struct) assignment to update softpipe->viewport.
authorBrian <brian.paul@tungstengraphics.com>
Fri, 15 Jun 2007 16:50:48 +0000 (10:50 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 15 Jun 2007 16:50:48 +0000 (10:50 -0600)
commitfde755aefb3559731a734110c7172badee9f14f9
tree59ece56452acdd4dacb3ed0850b6cbbf2125dff2
parent8f6b6eed35832733674372dea7bd5ce69a965c4e
In softpipe_set_viewport() use ordinary (struct) assignment to update softpipe->viewport.

The previous memcpy() was incorrect since it only copied 4 bytes instead of 32.
With struct assignment we avoid data size errors.
src/mesa/pipe/softpipe/sp_state_clip.c