nine/state: fix interaction between SetLod and D3DSAMP_MAXMIPLEVEL
nine/basetexture: fix SetLOD crazyness WIP