diff options
| author | Miao Wang <miaowang@google.com> | 2015-02-02 19:30:27 -0800 |
|---|---|---|
| committer | Miao Wang <miaowang@google.com> | 2015-02-02 19:30:27 -0800 |
| commit | 94280f817b502caf0b4e40cbcbe300f5178b7473 (patch) | |
| tree | ad83580c51fb8c5527526ca650db674334941c96 /cpp/Allocation.cpp | |
| parent | efecde77eed8fbb8a87707df5e78c8cab4a6e8bb (diff) | |
| download | android_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.cpp | 2 |
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; |
