Probably R_InitSky or the GL_LoadTexture call. If memory serves there might be a little extra work needed in R_InitSky too, and I haven't tried this in glqwcl so there might be other places where (byte *) (tx + 1) is referred.
I'll try it tomorrow and post an update if I remember.