mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-26 06:36:14 +00:00
opengles2: Call glClearColor() with r,g,b,a, not r,g,g,a
This commit is contained in:
committed by
Sam Lantinga
parent
fee140bdfe
commit
7f33464bed
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user