Deforestation -- caused by logging , agriculture and development -- in the tropics accounts for up to 20 percent of global emissions of carbon dioxide , making it the second largest driver of global warming after the burning of fossil fuels .