Screenshot Problem [LibGDX]

I followed the instructions given here: https://github.com/libgdx/libgdx/wiki/Take-a-Screenshot

But, my saved screenshot is just a black screen; Nothing else;

Help me! :smiley: