aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-14 12:29:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-14 12:29:17 -0700
commite488d633126d80260cb333f53c21911c3354c8c6 (patch)
tree6b62c5076a57b0b8b7290f9fdf5a9ef93b22be26 /src
parent360b6801cfd90485891d709e44cf395d527ba69e (diff)
Only use sized format on IMG/ES3 for single channel.
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGpuGL.cpp3
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;
}
}