Fix setting of GL texture swizzle when using 1 for swizzle.

Bug: skia:
Change-Id: I96a128fa0bad282ae4566a6cb967d0de459448b1
Reviewed-on: https://skia-review.googlesource.com/c/193467
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2019-02-20 10:12:29 -05:00 committed by Skia Commit-Bot
parent c74512c7ff
commit 216a9d7c3b

View File

@ -2970,6 +2970,7 @@ static void get_gl_swizzle_values(const GrSwizzle& swizzle, GrGLenum glValues[4]
case 'g': glValues[i] = GR_GL_GREEN; break;
case 'b': glValues[i] = GR_GL_BLUE; break;
case 'a': glValues[i] = GR_GL_ALPHA; break;
case '1': glValues[i] = GR_GL_ONE; break;
default: SK_ABORT("Unsupported component");
}
}