South Africa developed nuclear weapons during white minority rule , but dismantled its nuclear program in 1991 .