[RenderScript] fix Allocation.copyToFieldPacker

Change-Id: Iaba3333f9741238745fdb5c94f1b27b1015d50b2
This commit is contained in:
Miao Wang
2015-05-04 15:29:25 -07:00
parent cce01f480f
commit bfa5e659e7
2 changed files with 2 additions and 2 deletions

View File

@@ -1448,7 +1448,7 @@ public class Allocation extends BaseObj {
}
final byte[] data = fp.getData();
int data_length = fp.getPos();
int data_length = data.length;
int eSize = mType.mElement.mElements[component_number].getBytesSize();
eSize *= mType.mElement.mArraySizes[component_number];