summaryrefslogtreecommitdiff
path: root/src/quick/scenegraph/util/qsgtexture.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-04-15 07:38:30 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-15 14:28:45 +0200
commit95eab985381e38cf9ae3f7ef958a168fe29e8885 (patch)
tree5382f285418193656194dc7b33b003c69d589858 /src/quick/scenegraph/util/qsgtexture.cpp
parent3c560fcbff1de8e753b9f122b58cd105d6dc5140 (diff)
downloadqtdeclarative-95eab985381e38cf9ae3f7ef958a168fe29e8885.tar.gz
Regenerate mipmaps after changing the imagedata of a texture.
This has been a latent bug since the class was written, but has only surfaced after 15999f14f146b5c04fb40b31b69ceeeece273430 when mipmapping was allowed for all QSGPlainTextures. Task-number: QTBUG-38321 Change-Id: I058e554c4035c573d2ddb4ea793d8ad53e11e54b Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/scenegraph/util/qsgtexture.cpp')
-rw-r--r--src/quick/scenegraph/util/qsgtexture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgtexture.cpp b/src/quick/scenegraph/util/qsgtexture.cpp
index ec563273a1..c6e5f7ac7b 100644
--- a/src/quick/scenegraph/util/qsgtexture.cpp
+++ b/src/quick/scenegraph/util/qsgtexture.cpp
@@ -567,6 +567,7 @@ void QSGPlainTexture::setImage(const QImage &image)
m_has_alpha = image.hasAlphaChannel();
m_dirty_texture = true;
m_dirty_bind_options = true;
+ m_mipmaps_generated = false;
}
int QSGPlainTexture::textureId() const