Ignore empty layers.
Change-Id: Ib2f99cdab654881fe079306e27d87c5ef9535700
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 8bfc8d4..17b9e83 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -385,11 +385,7 @@
if (bounds.isEmpty() || bounds.getWidth() > mCaches.maxTextureSize ||
bounds.getHeight() > mCaches.maxTextureSize) {
- if (fboLayer) {
- snapshot->invisible = true;
- } else {
- snapshot->empty = true;
- }
+ snapshot->empty = fboLayer;
} else {
snapshot->invisible = snapshot->invisible || (alpha <= ALPHA_THRESHOLD && fboLayer);
}