using flush() here is pointless as we render the layout into a memory bu...

...ffer and actually transmit the data later

fixes #10182 

@tomneedham @jancborchardt @icewind1991