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:
Mathias Agopian
2023-12-05 09:28:50 -08:00
committed by Mathias Agopian
parent 164d7507bb
commit d9ee526a72
3 changed files with 3 additions and 3 deletions
@@ -38,7 +38,7 @@ Java_com_google_android_filament_EntityManager_nCreateArray(JNIEnv* env, jclass,
// (which it is), but still.
em->create((size_t) n, reinterpret_cast<Entity *>(entities));
env->ReleaseIntArrayElements(entities_, entities, 0);
env->ReleaseIntArrayElements(entities_, entities, JNI_ABORT);
}
extern "C" JNIEXPORT jint JNICALL