aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar derekf <derekf@osg.samsung.com>2014-11-07 09:39:26 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-07 09:39:27 -0800
commit32f80ca3821947494e1e81e31896412c098562b5 (patch)
treef42a94ff504957cd467089e11cecf3176f2d4fdd /src/gpu
parent044134b9697fbe1a577e2919892dc94ad297a858 (diff)
Mesa ES 3.0 requires sized internal formats
Mesa's ES 3.0 implementation requires GL_R8 as an internal format instead of GL_RED Review URL: https://codereview.chromium.org/705183002
Diffstat (limited to 'src/gpu')
-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 665785c53c..0a90e82661 100644
--- a/src/gpu/gl/GrGpuGL.cpp
+++ b/src/gpu/gl/GrGpuGL.cpp
@@ -568,7 +568,8 @@ bool GrGpuGL::uploadTexData(const GrSurfaceDesc& desc,
// At least some versions of the ES3 drivers for NVIDIA and IMG won't accept GL_RED in
// glTexImage2D for the internal format but will accept GL_R8.
if (kNVIDIA_GrGLVendor == this->glContext().vendor() ||
- kImagination_GrGLVendor == this->glContext().vendor()) {
+ kImagination_GrGLVendor == this->glContext().vendor() ||
+ this->glContext().isMesa()) {
if (kGLES_GrGLStandard == this->glStandard() && this->glVersion() >= GR_GL_VER(3, 0) &&
kAlpha_8_GrPixelConfig == dataConfig) {
useSizedFormat = true;