summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-04-28 17:55:50 -0700
committerChris Craik <ccraik@google.com>2015-04-29 13:04:02 -0700
commite145013153b562d0b1bcac3e88095411874f1c25 (patch)
tree54b8dc8d821a3af042dda0cc2a26c20c44795873 /libs/hwui/OpenGLRenderer.cpp
parent340b198ccbd1a05e67d586c345139617d4b84ce0 (diff)
downloadframeworks_base-e145013153b562d0b1bcac3e88095411874f1c25.zip
frameworks_base-e145013153b562d0b1bcac3e88095411874f1c25.tar.gz
frameworks_base-e145013153b562d0b1bcac3e88095411874f1c25.tar.bz2
Require minimum 4 bit stencil for layers.
bug:19270131 Change-Id: I81367179d268e7c1642259c456c1f3d0018f6c0d
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 30935d5..f1ec8ae 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1262,7 +1262,7 @@ void OpenGLRenderer::attachStencilBufferToLayer(Layer* layer) {
endTiling();
RenderBuffer* buffer = mCaches.renderBufferCache.get(
- Stencil::getSmallestStencilFormat(),
+ Stencil::getLayerStencilFormat(),
layer->getWidth(), layer->getHeight());
layer->setStencilRenderBuffer(buffer);