paint-volumes: avoid trashing is_static state
In _clutter_paint_volume_set_from_volume we were using memcpy to simply copy everything from one volume to another, but that meant we were trashing the is_static flag which determines if the destination paint-volume was slice allocated or not.
This commit is contained in:
parent
a9789616b9
commit
30eb3be781
1 changed files with 2 additions and 0 deletions
|
@ -143,7 +143,9 @@ void
|
|||
_clutter_paint_volume_set_from_volume (ClutterPaintVolume *pv,
|
||||
const ClutterPaintVolume *src)
|
||||
{
|
||||
gboolean is_static = pv->is_static;
|
||||
memcpy (pv, src, sizeof (ClutterPaintVolume));
|
||||
pv->is_static = is_static;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue