diff options
| author | Chet Haase <chet@google.com> | 2010-11-05 15:36:16 -0700 |
|---|---|---|
| committer | Chet Haase <chet@google.com> | 2010-11-09 06:38:56 -0800 |
| commit | 0d200833fdc53f9796698f97c18cefc4a1b82df2 (patch) | |
| tree | bef2739584bf97f330eda7c691c011e420cee8e9 /libs | |
| parent | c55fa1b999068fc7f242b88a87270b249ab366eb (diff) | |
| download | frameworks_base-0d200833fdc53f9796698f97c18cefc4a1b82df2.zip frameworks_base-0d200833fdc53f9796698f97c18cefc4a1b82df2.tar.gz frameworks_base-0d200833fdc53f9796698f97c18cefc4a1b82df2.tar.bz2 | |
Fix GL rendering of translucent surfaces
GL renderer was not initializing scissor correctly for translucent
surfaces, resulting in invisible window backgrounds in some cases
like fading popup windows
Change-Id: I87a964986e1ba2c4f59708c8892c5fa71903e6fc
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 9a6618b..782d9b2 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -147,13 +147,10 @@ void OpenGLRenderer::prepare(bool opaque) { glDisable(GL_SCISSOR_TEST); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT); - glEnable(GL_SCISSOR_TEST); - } else { - glEnable(GL_SCISSOR_TEST); - glScissor(0, 0, mWidth, mHeight); - dirtyClip(); } + glEnable(GL_SCISSOR_TEST); + glScissor(0, 0, mWidth, mHeight); mSnapshot->setClip(0.0f, 0.0f, mWidth, mHeight); } |
