fix jni Scene.getEntities
we were using the version of ReleaseIntArrayElements that doesn't always keep changes to the array.
This commit is contained in:
committed by
Mathias Agopian
parent
164d7507bb
commit
d9ee526a72
@@ -114,6 +114,6 @@ Java_com_google_android_filament_Scene_nGetEntities(JNIEnv *env, jclass ,
|
||||
out[i++] = (jint) entity.getId();
|
||||
}
|
||||
});
|
||||
env->ReleaseIntArrayElements(outArray, (jint*) out, JNI_ABORT);
|
||||
env->ReleaseIntArrayElements(outArray, (jint*) out, 0);
|
||||
return JNI_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user