summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-01-31 17:23:47 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-31 18:57:50 +0100
commitbc91dc48952680c0652a80e15ab3f0b8f87b6374 (patch)
tree02979cb0b0f3a7334c9343c4abdd31879ec7a4ac /src/corelib/codecs
parentc5ee652278d3412b146e54589f3073c3a5dd032c (diff)
QOpenGLTexture: avoid a QImage detach when uploading texture data from it
If the image is already in the right format, converting it to RGBA8888 will be just a refcount increment; but calling bits() will then cause an unnecessary detach. Change-Id: I3b06139cd86b74a9082bd0b401a9a14bd4992a10 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/corelib/codecs')
0 files changed, 0 insertions, 0 deletions