Closed ptc-tgamper closed 4 days ago
Thanks!
This PR solves the issue as you mentioned: https://github.com/syoyo/tinygltf/issues/473 And since it breaks FS API, I need to be a bit carefully on merging this PR.
Just want to confirm: The difference is only adding FSCallback to FS Writer API? No other changes to FS API?
No other changes. Just directly passing the FSCallbacks through. Now the user pointer is actually the user pointer one would expect in all the callbacks.
@tdapper could you give this branch a try?
I can confirm that the small test case does not crash anymore. I am going to test it in our original context now.
It also works in our original context. Many thanks.
@ptc-tgamper Code is now OK(reviewed & CI test passes). I think its ready to merge. Do you have any further commits planned?
Not at the moment. Please merge, as this gets memory consumption down by an order of magnitude for our use case.
@ptc-tgamper Thanks! Merged!
Created new release FYI: https://github.com/syoyo/tinygltf/releases/tag/v2.9.0
tiny_gltf.h - explicitly pass filesystem callbacks to image related functions tester.cc - add respective test case, fix image uri test case