mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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.
This commit is contained in:
parent
8f6b6eed35
commit
fde755aefb
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ void softpipe_set_viewport( struct pipe_context *pipe,
|
|||
{
|
||||
struct softpipe_context *softpipe = softpipe_context(pipe);
|
||||
|
||||
memcpy(&softpipe->viewport, viewport, sizeof(viewport));
|
||||
softpipe->viewport = *viewport; /* struct copy */
|
||||
|
||||
/* Using tnl/ and vf/ modules is temporary while getting started.
|
||||
* Full pipe will have vertex shader, vertex fetch of its own.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue