Only use sized format on IMG/ES3 for single channel.
BUG=skia:2922 Review URL: https://codereview.chromium.org/638293004
This commit is contained in:
parent
360b6801cf
commit
e488d63312
@ -591,7 +591,8 @@ bool GrGpuGL::uploadTexData(const GrGLTexture::Desc& desc,
|
||||
// glTexImage2D for the internal format but will accept GL_R8.
|
||||
if (kNVIDIA_GrGLVendor == this->glContext().vendor() ||
|
||||
kImagination_GrGLVendor == this->glContext().vendor()) {
|
||||
if (kGLES_GrGLStandard == this->glStandard() && this->glVersion() >= GR_GL_VER(3, 0)) {
|
||||
if (kGLES_GrGLStandard == this->glStandard() && this->glVersion() >= GR_GL_VER(3, 0) &&
|
||||
kAlpha_8_GrPixelConfig == dataConfig) {
|
||||
useSizedFormat = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user