Merge branch 'Plasma/5.2'
This commit is contained in:
commit
5c4f1dffa3
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ void GLTexture::update(const QImage &image, const QPoint &offset, const QRect &s
|
||||||
QImage tmpImage;
|
QImage tmpImage;
|
||||||
|
|
||||||
if (!src.isNull()) {
|
if (!src.isNull()) {
|
||||||
if (d->s_supportsUnpack) {
|
if (useUnpack) {
|
||||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, image.width());
|
glPixelStorei(GL_UNPACK_ROW_LENGTH, image.width());
|
||||||
glPixelStorei(GL_UNPACK_SKIP_PIXELS, src.x());
|
glPixelStorei(GL_UNPACK_SKIP_PIXELS, src.x());
|
||||||
glPixelStorei(GL_UNPACK_SKIP_ROWS, src.y());
|
glPixelStorei(GL_UNPACK_SKIP_ROWS, src.y());
|
||||||
|
|
Loading…
Reference in a new issue