tilesort relies on state tracker to propagate changes to
texture parameters. State tracker does not propagate
(diff) changes in BASE_LEVEL or MAX_LEVEL.
Symptom: causes textures to fail to appear in a LOD
mode is chosen but not all LODs are provided and
MAX_LEVEL is set low to signal this. E.g. Java3D with
X3D loader for any texture by default.
I think there is also a bug in checking dirty for this
A version of state_tracker/state_texdiff.c which fixes this
(for me) is attached. However it also has some
additional changes to reduce unnecessary calls to
ActiveTextureARB which are probably not required for