Provided are methods and compositions for maintaining the viability of photoreceptor cells and/or retinal pigment epithelial cells in a subject with an ocular disorder including, for example, age-related macular degeneration (AMD) (e.g., dry or neovascular AMD), retinitis pigmentosa (RP), or a retinal detachment. The viability of the photoreceptor cells and/or the retinal pigment epithelial cells can be preserved by administering a necrosis inhibitor either alone or in combination with an apoptosis inhibitor to a subject having an eye with the ocular condition. The compositions, when administered, maintain the viability of the cells, thereby minimizing the loss of vision or visual function associated with the ocular disorder.