mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +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
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