fixed render.InitializeGBuffer error on minimize