While not ideal, you can bake sourdough sandwich bread in a glass pan. I would recommend metal pans or cast iron pans over glass because bread can easily stick to glass if it's not prepared properly.