White screen before building

What I shared was some of the engine source code. It’s not something to put in your game. But it is the place where one might find a solution.