make textures array static to texture.c