diff options
author | 2014-10-14 12:29:17 -0700 | |
---|---|---|
committer | 2014-10-14 12:29:17 -0700 | |
commit | e488d633126d80260cb333f53c21911c3354c8c6 (patch) | |
tree | 6b62c5076a57b0b8b7290f9fdf5a9ef93b22be26 /src | |
parent | 360b6801cfd90485891d709e44cf395d527ba69e (diff) |
Only use sized format on IMG/ES3 for single channel.
BUG=skia:2922
Review URL: https://codereview.chromium.org/638293004
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index 97f2a114db..209edaa188 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -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; } } |