Fix handling of red support for GalliumLLVM renderer

Change-Id: Ia4a71ca336a43dd2717a6aa4b5e254cd46406228
Reviewed-on: https://skia-review.googlesource.com/97061
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2018-01-19 08:36:24 -05:00 committed by Skia Commit-Bot
parent ad2cd562d9
commit f625860554

View File

@ -2130,7 +2130,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() && textureRedSupport) {
if (kGalliumLLVM_GrGLRenderer == ctxInfo.renderer() && !textureRedSupport) {
SkASSERT(fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fBaseInternalFormat ==
fConfigTable[kAlpha_8_as_Alpha_GrPixelConfig].fFormats.fBaseInternalFormat);
fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fInternalFormatTexImage =