SDL: opengles2: Call glClearColor() with r,g,b,a, not r,g,g,a

From 7f33464beddb48407ad7478bb77e42c9d9b490db Mon Sep 17 00:00:00 2001
From: Robert Edmonds <[EMAIL REDACTED]>
Date: Sat, 17 Feb 2024 15:51:45 -0500
Subject: [PATCH] opengles2: Call glClearColor() with r,g,b,a, not r,g,g,a

---
 src/render/opengles2/SDL_render_gles2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c
index e51c7c85ac71..3c7b94f77d93 100644
--- a/src/render/opengles2/SDL_render_gles2.c
+++ b/src/render/opengles2/SDL_render_gles2.c
@@ -1279,7 +1279,7 @@ static int GLES2_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd,
                 (g != data->drawstate.clear_color.g) ||
                 (b != data->drawstate.clear_color.b) ||
                 (a != data->drawstate.clear_color.a)) {
-                data->glClearColor(r, g, g, a);
+                data->glClearColor(r, g, b, a);
                 data->drawstate.clear_color.r = r;
                 data->drawstate.clear_color.g = g;
                 data->drawstate.clear_color.b = b;