gui: fix screen getting lost after first render
fix bad frame on nSamples change