This actually happens because of blitzmax.
When I was making Mahjongg I noticed this. I noticed that if you printscreen, alt-tab,paste to paint it will be black, but alt-tab again and printscreen again and the paste will be good.
Didn't test it with Leadwerks but it's based on Blitzmax internals and also uses OpenGL so it should be the same.