Support unaligned QImage strides in QSGTexture
authorAndrew Knight <andrew.knight@digia.com>
Wed, 12 Jun 2013 07:11:06 +0000 (10:11 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 12 Jun 2013 09:07:14 +0000 (11:07 +0200)
commite99cb6767b54aa9b082c4fd8bef93760c563da59
tree10ba045d59e03443f688a30e375fdd5d63a854dd
parent1261b75a36fc330f182dd1c3b34a2b4a0d439a80
Support unaligned QImage strides in QSGTexture

If a QImage has a different stride than its width, copy the image to
relayout the memory for compatibility with glTexImage2D().

Change-Id: I74338da97d785ffb9e00820caff36466dfa46838
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/scenegraph/util/qsgtexture.cpp