summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-10-19 16:20:11 -0400
committerRobert Foss <robert.foss@collabora.com>2017-03-22 14:38:43 -0400
commitd4c0ad6a29646f6882ceadb84b24ae7c41b5234a (patch)
treee169342aec8c61f346896f14687719dee2041559
parent01a848eaef152486b1d26d10b6baf411e2b8aa7d (diff)
downloaddrm_hwcomposer-d4c0ad6a29646f6882ceadb84b24ae7c41b5234a.tar.gz
drm_hwcomposer-d4c0ad6a29646f6882ceadb84b24ae7c41b5234a.tar.xz
drm_hwcomposer: Verify client_layer->buffer_ isn't null
BUG=None TEST=Tested on Qemu Change-Id: Ie5a639be456118006473244bb1b077d0f2a73669 Signed-off-by: Rob Clark <robdclark@gmail.com>
-rw-r--r--drmhwctwo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drmhwctwo.cpp b/drmhwctwo.cpp
index 479812a..a00762e 100644
--- a/drmhwctwo.cpp
+++ b/drmhwctwo.cpp
@@ -512,7 +512,7 @@ HWC2::Error DrmHwcTwo::HwcDisplay::PresentDisplay(int32_t *retire_fence) {
continue;
}
}
- if (use_client_layer)
+ if (use_client_layer && client_layer_.buffer())
z_map.emplace(std::make_pair(client_z_order, &client_layer_));
// now that they're ordered by z, add them to the composition