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
@@ -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;
}