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

This commit is contained in:
Robert Edmonds authored and Sam Lantinga committed 2024-02-17 14:11:59 -08:00
1 parent fee140bdfe
commit 7f33464bed
1 file changed
+1 -1
+1 -1
View File
@@ -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;