diff options
Diffstat (limited to 'src/jumper/SkJumper_stages_lowp.cpp')
-rw-r--r-- | src/jumper/SkJumper_stages_lowp.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jumper/SkJumper_stages_lowp.cpp b/src/jumper/SkJumper_stages_lowp.cpp index 4761320c7c..eb169ae9f3 100644 --- a/src/jumper/SkJumper_stages_lowp.cpp +++ b/src/jumper/SkJumper_stages_lowp.cpp @@ -137,11 +137,10 @@ SI D join(S lo, S hi) { // ~~~~~~ Basic / misc. stages ~~~~~~ // STAGE(uniform_color, const SkJumper_UniformColorCtx* c) { - auto rgba = (const uint8_t*)&c->rgba; - r = rgba[0]; - g = rgba[1]; - b = rgba[2]; - a = rgba[3]; + r = c->rgba[0]; + g = c->rgba[1]; + b = c->rgba[2]; + a = c->rgba[3]; } STAGE(black_color, Ctx::None) { r = g = b = 0; a = 255; } STAGE(white_color, Ctx::None) { r = g = b = 255; a = 255; } |