GPU: Fix incorrect VRAM fill colours in GL renderer

This commit is contained in:
Connor McLaughlin 2019-11-03 01:02:05 +10:00
parent 8ffce6ae0b
commit f7f5d45d7a
1 changed files with 1 additions and 1 deletions

View File

@ -91,8 +91,8 @@ protected:
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),
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 >> 16) & UINT32_C(0xFF)) * (1.0f / 255.0f),
static_cast<float>(rgba >> 24) * (1.0f / 255.0f));
}