summaryrefslogtreecommitdiffstats
path: root/cpp/Allocation.cpp
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-02-02 19:30:27 -0800
committerMiao Wang <miaowang@google.com>2015-02-02 19:30:27 -0800
commit94280f817b502caf0b4e40cbcbe300f5178b7473 (patch)
treead83580c51fb8c5527526ca650db674334941c96 /cpp/Allocation.cpp
parentefecde77eed8fbb8a87707df5e78c8cab4a6e8bb (diff)
downloadandroid_frameworks_rs-94280f817b502caf0b4e40cbcbe300f5178b7473.tar.gz
android_frameworks_rs-94280f817b502caf0b4e40cbcbe300f5178b7473.tar.bz2
android_frameworks_rs-94280f817b502caf0b4e40cbcbe300f5178b7473.zip
Add the missing 'stridelen' field for AllocationGetPointer.
Change-Id: I387a1e07eb2b1debf60b517d898d3828ff53600c
Diffstat (limited to 'cpp/Allocation.cpp')
-rw-r--r--cpp/Allocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/Allocation.cpp b/cpp/Allocation.cpp
index 50ae2394..c4d62b5f 100644
--- a/cpp/Allocation.cpp
+++ b/cpp/Allocation.cpp
@@ -183,7 +183,7 @@ void * Allocation::getPointer(size_t *stride) {
}
p = RS::dispatch->AllocationGetPointer(mRS->getContext(), getIDSafe(), 0,
- RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X, 0, 0, stride);
+ RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X, 0, 0, stride, sizeof(size_t));
if (mRS->getError() != RS_SUCCESS) {
mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Allocation lock failed");
p = nullptr;