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-04 16:43:35 -08:00
committed by Mathias Agopian
parent 164d7507bb
commit d9ee526a72
3 changed files with 3 additions and 3 deletions

View File

@@ -205,7 +205,7 @@ Java_com_google_android_filament_MaterialInstance_nSetIntParameterArray(JNIEnv *
break;
}
env->ReleaseIntArrayElements(v_, v, 0);
env->ReleaseIntArrayElements(v_, v, JNI_ABORT);
env->ReleaseStringUTFChars(name_, name);
}