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
diff --git a/android_webview/browser/scoped_app_gl_state_restore.cc b/android_webview/browser/scoped_app_gl_state_restore.cc
index a36e061..c0226d1 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 @@
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));
}