From f7f5d45d7a08daefa031bb9d646eafd4e43afd25 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 3 Nov 2019 01:02:05 +1000 Subject: [PATCH] GPU: Fix incorrect VRAM fill colours in GL renderer --- src/core/gpu_hw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw.h b/src/core/gpu_hw.h index 212ecbfa8..0e739bed2 100644 --- a/src/core/gpu_hw.h +++ b/src/core/gpu_hw.h @@ -91,8 +91,8 @@ protected: static constexpr std::tuple RGBA8ToFloat(u32 rgba) { return std::make_tuple(static_cast(rgba & UINT32_C(0xFF)) * (1.0f / 255.0f), - static_cast((rgba >> 16) & UINT32_C(0xFF)) * (1.0f / 255.0f), static_cast((rgba >> 8) & UINT32_C(0xFF)) * (1.0f / 255.0f), + static_cast((rgba >> 16) & UINT32_C(0xFF)) * (1.0f / 255.0f), static_cast(rgba >> 24) * (1.0f / 255.0f)); }