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:
parent
e90974e69f
commit
b07b06e148
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user