1
Fork 0
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:
Stephan Unverwerth 2021-08-18 13:20:00 +02:00 committed by Andreas Kling
parent e9514cf6c0
commit 22905daacb
4 changed files with 39 additions and 72 deletions

View file

@ -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
};
}