From 5903a7ad56ce64be0ba44b97f2e9f846bd67e236 Mon Sep 17 00:00:00 2001 From: collecting Date: Tue, 23 Sep 2025 01:10:07 +0000 Subject: [PATCH] static_cast --- src/video_core/renderer_opengl/gl_zbc_clear.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video_core/renderer_opengl/gl_zbc_clear.cpp b/src/video_core/renderer_opengl/gl_zbc_clear.cpp index eb91e05b1..f7be08c4f 100644 --- a/src/video_core/renderer_opengl/gl_zbc_clear.cpp +++ b/src/video_core/renderer_opengl/gl_zbc_clear.cpp @@ -84,10 +84,10 @@ std::array ZBCClear::ConvertColorToOpenGL(const std::array& colo const u32 primary_color = color_u32[0]; // Extract RGBA components (assuming RGBA8888 format) - const u8 r = (primary_color >> 0) & 0xFF; - const u8 g = (primary_color >> 8) & 0xFF; - const u8 b = (primary_color >> 16) & 0xFF; - const u8 a = (primary_color >> 24) & 0xFF; + const u8 r = static_cast((primary_color >> 0) & 0xFF); + const u8 g = static_cast((primary_color >> 8) & 0xFF); + const u8 b = static_cast((primary_color >> 16) & 0xFF); + const u8 a = static_cast((primary_color >> 24) & 0xFF); // Convert to normalized float values [0.0, 1.0] color_f32[0] = static_cast(r) / 255.0f; // Red