[RenderScript] fix Allocation.copyToFieldPacker
Change-Id: Iaba3333f9741238745fdb5c94f1b27b1015d50b2
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user