The raster backend does all its rendering in an xshm image, so it's likely that the problem is in the ShmPutImage path.