plugins/screenshot: Port blitScreenshot() to glReadnPixels()
With glReadnPixels(), it can be guaranteed that the texture data won't be written beyond the QImage buffer bounds.
(cherry picked from commit 230e456f)
Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org