Textures no longer appear in function declaration when not needed