(Glide2GL) Glitch64 - convert textures.cpp to C