Editor window flashes white on start-up



I am working on an audio plug-in, with a background image, a bunch of buttons, and some OpenGLComponents.

I’m happy with how it all displays once the plug-in is fully started up, but for a split-second when I first open the plug-in, I see the window with a blank white background which looks a bit glitchy.

Does anyone know of a way I can get rid of this white background on start-up? Ideally I’d want the window to not appear until its ready to render the first frame properly, or alternatively, I’d much prefer it to start-up black instead of white (as my plug-in is fairly dark coloured).

I’ve checked with the JuceDemoPlugin, and that looks like it has a brief flash of white at the start as well.

Thanks for any help.