Hmm I still get a black texture. However when I comment out the line:
TextureTransformFlags[0] = Count2;
The texture is displayed but with no texture shifting. For some reason does my Geforce 2 not support this shader? I thought it was all fixed-function? That cannot be the case otherwise the fallback would have run.