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:
bsalomon 2014-10-14 12:29:17 -07:00 committed by Commit bot
parent 360b6801cf
commit e488d63312

View File

@ -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;
}
}