diff options
| author | 2014-11-24 21:08:15 +0900 | |
|---|---|---|
| committer | 2014-11-24 21:08:15 +0900 | |
| commit | adc0d9da8648abfea1035fb1108eceea9fd9b5b1 (patch) | |
| tree | 8656d15624a473abdf019d1d8d51de2d74adeaac /libs/hwui/OpenGLRenderer.cpp | |
| parent | ff4dd15cd024f72cbd2b6d547356de030b2dd71c (diff) | |
Enable stencil clipping within clearLayerRegions
Previously stencil clipping within clearLayerRegions is disabled by commit
62d307c2402777d5e53b4590af5f32f8c55afd81. However, clearing whole layer
regions causes black-colored triangle regions when a TextView has
RotateAnimation because the draw within clearLayerRegions does not
affected by the current stencil clip.
Change-Id: Id32a0b16754b109905f833e063ebfa156bd953f2
Signed-off-by: Dohyun Lee <dohyun.lee@lge.com>
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rwxr-xr-x | libs/hwui/OpenGLRenderer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 40a58f290619..fdfcbe742f78 100755 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1607,13 +1607,7 @@ void OpenGLRenderer::setupDraw(bool clearLayer) { setScissorFromClip(); } - if (clearLayer) { - setStencilFromClip(); - } else { - // While clearing layer, force disable stencil buffer, since - // it's invalid to stencil-clip *during* the layer clear - mCaches.stencil.disable(); - } + setStencilFromClip(); } mDescription.reset(); |