summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboliu <boliu@chromium.org>2014-11-20 11:09:10 -0800
committerBo Liu <boliu@google.com>2014-11-21 14:19:07 -0800
commit82266bf9494bbc751c5d727835bf0988a6c51004 (patch)
tree323b9de4b3da04d67f42090a08006fcf1c5a0e75
parent7fdf670743d19bfce95eb5e80719548002ff0bc8 (diff)
downloadchromium_org-82266bf9494bbc751c5d727835bf0988a6c51004.tar.gz
Cherry-pick: aw: Workaround qualcomm driver bug
Clean cherry-pick of chromium crrev.com/18abdf1afb8034be81213b23d9e05d34e92bc8d3 BUG: 18386625 Original description: This is a small webview-specific workaround that affects all drivers. Will need a better driver/version specific workaround later. Change-Id: Iec566f9f166397a104badb8b549cc59e6173faac
-rw-r--r--android_webview/browser/scoped_app_gl_state_restore.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/android_webview/browser/scoped_app_gl_state_restore.cc b/android_webview/browser/scoped_app_gl_state_restore.cc
index a36e061cca..c0226d1f7c 100644
--- a/android_webview/browser/scoped_app_gl_state_restore.cc
+++ b/android_webview/browser/scoped_app_gl_state_restore.cc
@@ -294,6 +294,9 @@ ScopedAppGLStateRestoreImpl::ScopedAppGLStateRestoreImpl(
glGetVertexAttribfv(
i, GL_CURRENT_VERTEX_ATTRIB, vertex_attrib_[i].current_vertex_attrib);
}
+
+ // Android 5.0.0 specific qualcomm workaround. See crbug.com/434570.
+ glBindRenderbufferEXT(GL_RENDERBUFFER, 0);
DCHECK(ClearGLErrors(false, NULL));
}