Hmm, or should it not be using glstate above so that this works?  Normally SetTexture will be called right before all the StateMapping stuff, iirc.

-[Unknown]