Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1350)

Unified Diff: src/gpu/gl/GrGpuGL.cpp

Issue 705183002: Mesa ES 3.0 requires sized internal formats (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGpuGL.cpp
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
index 73dd9bb15c1714e62b02d0772499fc72c6575f6c..f1684b7fdeb8da4213711d1f20f0853639936b46 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698