summaryrefslogtreecommitdiff
path: root/gralloc/QtiMapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc/QtiMapper.cpp')
-rw-r--r--gralloc/QtiMapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gralloc/QtiMapper.cpp b/gralloc/QtiMapper.cpp
index 490cf947..80655361 100644
--- a/gralloc/QtiMapper.cpp
+++ b/gralloc/QtiMapper.cpp
@@ -52,7 +52,7 @@ QtiMapper::QtiMapper() {
bool QtiMapper::ValidDescriptor(const BufferDescriptorInfo_2_1 &bd) {
if (bd.width == 0 || bd.height == 0 || (static_cast<int32_t>(bd.format) <= 0) ||
- bd.layerCount != 1) {
+ bd.layerCount <= 0) {
return false;
}