summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index 25c716d..d208b52 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -482,7 +482,7 @@ int32_t HalImpl::getReadbackBufferAttributes(int64_t display,
RET_IF_ERR(halDisplay->getReadbackBufferAttributes(&format, &dataspace));
h2a::translate(format, attrs->format);
- h2a::translate(format, attrs->dataspace);
+ h2a::translate(dataspace, attrs->dataspace);
return HWC2_ERROR_NONE;
}