effects/screenshot: Capture screenshot in paintScreen()
It's not guaranteed that there will be current render target in postPaintScreen() as all painting have been completed. Furthermore, even the docs of the postPaintScreen() function indicate that no painting should be done there, you can do only cleanup things, e.g. schedule a repaint, etc. paintScreen() is a much safer place to capture screenshot.
parent
24eee2df
Please register or sign in to comment