diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-04-23 13:07:04 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-25 15:18:29 +0200 |
commit | fab46b1c6fb170bd8adc9a289fd5b33e7c6200ab (patch) | |
tree | 1334649d82dc96df5d72bcbd6c119534ae1759a7 /src/opengl/qgraphicsshadereffect_p.h | |
parent | 8ab1323842433fb6b45e7d6f381b4b9710a81da9 (diff) |
Avoid a double memory copy during bindTexture
If a painter is active on a QPixmap being uploaded, it will be copied
twice, first to create a QImage and then from QImage into a texture.
The first copy is unnecessary since the QImage is only temporary, so
we can force it to be created as a reference instead of a copy.
Change-Id: Iabcfb514a634446a01f1c4031349c185ec09290b
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/opengl/qgraphicsshadereffect_p.h')
0 files changed, 0 insertions, 0 deletions