summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-07-22 12:30:39 -0700
committerChris Craik <ccraik@android.com>2014-07-22 23:19:02 +0000
commitc47aba2a775dcbc824f6e0ec7236746d1853126c (patch)
tree9cb8e8b31f0ce1df3006c2a430ef25fa72f86c2c
parentfc6346d461c9ed9b499643db830885241cc82838 (diff)
downloadbase-c47aba2a775dcbc824f6e0ec7236746d1853126c.tar.gz
Restore untrusted glStencilMask value on resume after functor
Fixes an issue where the stencil buffer is corrupted (used in overdraw debugging, path clipping) when used in conjunction with a HW accelerated WebView. bug:15023700 bug:16465551 Change-Id: If201b503931380f7107a34e9a9a2f877a50f72b1
-rwxr-xr-xlibs/hwui/OpenGLRenderer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index ee4a054ab86f..fa44b972befd 100755
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -401,6 +401,8 @@ void OpenGLRenderer::resume() {
glEnable(GL_BLEND);
glBlendFunc(mCaches.lastSrcMode, mCaches.lastDstMode);
glBlendEquation(GL_FUNC_ADD);
+
+ glStencilMask(0xff);
}
void OpenGLRenderer::resumeAfterLayer() {