How to generate mipmaps for images loaded at runtime on android?

Hi all,

I hope you can help me with this one: I’m using the code from the link below to generate mipmaps for a texture loaded from the Internet at runtime. Still, it doesn’t seem to work on Quest 2/Android - only PCs. Does anyone have any ideas on how to solve this? Thank you!

Thank you very much!