Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
opengles 1: use color from 'draw' union in SetDrawState()
  • Loading branch information
1bsyl committed Dec 29, 2018
1 parent dc34436 commit 87b7636
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/render/opengles/SDL_render_gles.c
Expand Up @@ -698,10 +698,10 @@ static void
SetDrawState(GLES_RenderData *data, const SDL_RenderCommand *cmd)
{
const SDL_BlendMode blend = cmd->data.draw.blend;
const Uint8 r = cmd->data.color.r;
const Uint8 g = cmd->data.color.g;
const Uint8 b = cmd->data.color.b;
const Uint8 a = cmd->data.color.a;
const Uint8 r = cmd->data.draw.r;
const Uint8 g = cmd->data.draw.g;
const Uint8 b = cmd->data.draw.b;
const Uint8 a = cmd->data.draw.a;
const Uint32 color = ((a << 24) | (r << 16) | (g << 8) | b);

if (color != data->drawstate.color) {
Expand Down

0 comments on commit 87b7636

Please sign in to comment.