[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

@@ -1465,7 +1465,7 @@ nAllocationElementRead(JNIEnv *_env, jobject _this, jlong con, jlong alloc,
rsAllocationElementRead((RsContext)con, (RsAllocation)alloc,
xoff, yoff, zoff,
lod, ptr, sizeBytes, compIdx);
_env->ReleaseByteArrayElements(data, ptr, JNI_ABORT);
_env->ReleaseByteArrayElements(data, ptr, 0);
}
// Copies from the Allocation pointed to by _alloc into the Java object data.