mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 04:55:41 -04:00
GPU: Fix incorrect VRAM fill colours in GL renderer
This commit is contained in:
parent
8ffce6ae0b
commit
f7f5d45d7a
@ -91,8 +91,8 @@ protected:
|
|||||||
static constexpr std::tuple<float, float, float, float> RGBA8ToFloat(u32 rgba)
|
static constexpr std::tuple<float, float, float, float> RGBA8ToFloat(u32 rgba)
|
||||||
{
|
{
|
||||||
return std::make_tuple(static_cast<float>(rgba & UINT32_C(0xFF)) * (1.0f / 255.0f),
|
return std::make_tuple(static_cast<float>(rgba & UINT32_C(0xFF)) * (1.0f / 255.0f),
|
||||||
static_cast<float>((rgba >> 16) & UINT32_C(0xFF)) * (1.0f / 255.0f),
|
|
||||||
static_cast<float>((rgba >> 8) & UINT32_C(0xFF)) * (1.0f / 255.0f),
|
static_cast<float>((rgba >> 8) & UINT32_C(0xFF)) * (1.0f / 255.0f),
|
||||||
|
static_cast<float>((rgba >> 16) & UINT32_C(0xFF)) * (1.0f / 255.0f),
|
||||||
static_cast<float>(rgba >> 24) * (1.0f / 255.0f));
|
static_cast<float>(rgba >> 24) * (1.0f / 255.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user