opengl: Fix cached size check in GLTexture::render()
destinationSize
is stored in d->m_cachedSize
so we need to test
d->m_cachedSize
against destinationSize
rather than targetSize
.
(cherry picked from commit 10aaf965)
Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org