Fix assert in blink chromeos

Bug: skia:
Change-Id: I894effdde72a8777e0f943decc327d1c6616a69d
Reviewed-on: https://skia-review.googlesource.com/73520
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2017-11-18 21:26:17 -05:00 committed by Skia Commit-Bot
parent e90974e69f
commit b07b06e148

View File

@ -2076,7 +2076,7 @@ void GrGLCaps::initConfigTable(const GrContextOptions& contextOptions,
// Gallium llvmpipe renderer on ES 3.0 does not have R8 so we use Alpha for
// kAlpha_8_GrPixelConfig. Alpha8 is not a valid signed internal format so we must use the base
// internal format for that config when doing TexImage calls.
if(kGalliumLLVM_GrGLRenderer == ctxInfo.renderer()) {
if(kGalliumLLVM_GrGLRenderer == ctxInfo.renderer() && !this->textureRedSupport()) {
SkASSERT(fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fBaseInternalFormat ==
fConfigTable[kAlpha_8_as_Alpha_GrPixelConfig].fFormats.fBaseInternalFormat);
fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fInternalFormatTexImage =