Resolve #3919: Loading textures progress bar doesn't work. Could use a more abstract solution, but for now this is ok.