Application.CaptureScreenshot results in black image depending on quality

Hi, I’ve been using the Application.CaptureScreenshot for a while successfully, but I recently added the folowing line and all I can capture now is a black image. Does anyone know why this might be happening?

QualitySettings.SetQualityLevel(5, false);

I simply create a screenshot when the player presses L and R on an Xbox 360 controller:

if (Input.GetButton ("ButtonL") && Input.GetButton ("ButtonR"))
		Application.CaptureScreenshot(Application.dataPath + "Screenshot.png", 1);

If I lower the quality like so:

QualitySettings.SetQualityLevel(1, false);

I can capture a screenshot correctly.

disable in quality settings antialiasing and be work all good

The reason for this could be that setting the quality level to 5 results in a very high res image that takes time to render and that is why you are seeing a black image.