Combine the raspberries, blueberries, sugar, and water in a small saucepan; bring to a boil and cook at a boil for 5 minutes, scraping the bottom as needed to keep from burning. Reduce heat to low and simmer until thick, about 10 minutes. Serve warm.