If swelling affects the center of the retina where vision is clearest, the condition is called diabetic macular edema. Severe diabetic macular edema can cause vision loss.