graphics: fix camera not being restored in flip()