Disabling mipmaps using Python in-game

I have been trying to disable mipmaps in-game in Blender, and I know of only 3 ways to do it, and both are external: The first I know of is starting the game using parameters (game.exe -g nomipmaps) or something like that, the second is disabling it in the user preferences, but the standalone will still have mipmaps, and the third is using a launcher that SolarLune made which does the same as the first method, but by restarting the game using the blend. I am trying to make it controllable using a boolean property connected to a python script. Is there a way like this

from bge import render
bge.mipmap = False

that can disable mipmaps in-game without restarting?

Thanks

Sorry to have to do this, but… bump…

there is an option to do it per-material in my BGE candy branch. Although it isn’t quite finished yet.

Yeah, it doesn’t work for me :cry:
EDIT: It works after I restarted Blender, but I can’t control it.

yea you have to like reload the texture for it to take effect. When it’s done, it wont have this problem. Thing is, mipmaps are per-texture and not per-material, so that’s part of the problem.

Why’s that a problem? Great work, by the way!