Fix context lost with background renderer