summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-12-02 07:50:11 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-12-02 07:50:11 (GMT)
commit1b56836c0e7715fb1321c9bd48c8d6fd5b56f217 (patch)
tree489f981d4a6df75eb3d3a09c35fba9ba8e2dfc11 /src/opengl/qgl.h
parent480b395bd652a4ac6e3f262bd99a045dff95c4ac (diff)
downloadQt-1b56836c0e7715fb1321c9bd48c8d6fd5b56f217.zip
Qt-1b56836c0e7715fb1321c9bd48c8d6fd5b56f217.tar.gz
Qt-1b56836c0e7715fb1321c9bd48c8d6fd5b56f217.tar.bz2
Reduce double-copying of textures when flipping upside down
bindTexture() flipped images in-place, to reduce data copying. But there is one case where the in-place is worse: when the QImage is not detached. In that case, the flip was copying the entire image and then flipping the lines, effectively processing the contents twice. The new version uses mirrored() to reduce the overhead for non-detached images. Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qgl.h')
0 files changed, 0 insertions, 0 deletions