opengles 1: use color from 'draw' union in SetDrawState()
authorSylvain Becker <sylvain.becker@gmail.com>
Sat, 29 Dec 2018 16:34:50 +0100
changeset 1248406031bc24165
parent 12483 fbce19db4e53
child 12485 c3bc7d1f4179
opengles 1: use color from 'draw' union in SetDrawState()
src/render/opengles/SDL_render_gles.c
     1.1 --- a/src/render/opengles/SDL_render_gles.c	Fri Dec 21 20:53:31 2018 -0400
     1.2 +++ b/src/render/opengles/SDL_render_gles.c	Sat Dec 29 16:34:50 2018 +0100
     1.3 @@ -698,10 +698,10 @@
     1.4  SetDrawState(GLES_RenderData *data, const SDL_RenderCommand *cmd)
     1.5  {
     1.6      const SDL_BlendMode blend = cmd->data.draw.blend;
     1.7 -    const Uint8 r = cmd->data.color.r;
     1.8 -    const Uint8 g = cmd->data.color.g;
     1.9 -    const Uint8 b = cmd->data.color.b;
    1.10 -    const Uint8 a = cmd->data.color.a;
    1.11 +    const Uint8 r = cmd->data.draw.r;
    1.12 +    const Uint8 g = cmd->data.draw.g;
    1.13 +    const Uint8 b = cmd->data.draw.b;
    1.14 +    const Uint8 a = cmd->data.draw.a;
    1.15      const Uint32 color = ((a << 24) | (r << 16) | (g << 8) | b);
    1.16  
    1.17      if (color != data->drawstate.color) {