mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
LibGL: Fix interpretation of BGRA byte order
This fixes byte order interpretation in several places.
This commit is contained in:
parent
e9514cf6c0
commit
22905daacb
Notes:
sideshowbarker
2024-07-18 05:30:49 +09:00
Author: https://github.com/sunverwerth
Commit: 22905daacb
Pull-request: https://github.com/SerenityOS/serenity/pull/9451
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/alimpfard
4 changed files with 39 additions and 72 deletions
|
@ -34,9 +34,9 @@ public:
|
|||
u32 texel = m_pixel_data.at(y * m_width + x);
|
||||
|
||||
return {
|
||||
(texel & 0xff) / 255.f,
|
||||
((texel >> 8) & 0xff) / 255.f,
|
||||
((texel >> 16) & 0xff) / 255.f,
|
||||
((texel >> 8) & 0xff) / 255.f,
|
||||
(texel & 0xff) / 255.f,
|
||||
((texel >> 24) & 0xff) / 255.f
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue