mirror of
https://github.com/brl/mutter.git
synced 2025-02-08 09:34:10 +00:00
![Sebastian Wick](/assets/img/avatar_default.png)
Simply reinterpreting the bytes differently is a strict-aliasing violation if the type of the object isn't char or the target type of the reinterpretation. None of that is the case here, so we have to resort to a memcpy. Fixes: 60c082caa ("cogl/bitmap-conversion: Support packing fp16 formats") Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3499>