aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <416365416c@gmail.com>2012-11-16 22:32:03 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-30 18:46:35 +0100
commit6b54575fb08b31e3f4776ab91d51d541619a1af7 (patch)
tree76e2c508acf2f06e9c93180514de867861ddf777
parent90f28df50a51743988f8e9b9c95cfb9608239cfd (diff)
Update SGNode after pixmap is invalidated
If the QDeclarativePixmap on a previously valid Image is cleared, and the scenegraph updates before the networked pixmap request returns, the scenegraph can crash when trying to paint a now invalid texture. Task-number: QTBUG-27795 Change-Id: I83436f846a3e965b324ff6ebf057708fe8c3b82a Reviewed-by: Alan Alpert <aalpert@rim.com>
-rw-r--r--src/quick/items/qquickimagebase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickimagebase.cpp b/src/quick/items/qquickimagebase.cpp
index 2168b9399d..5808566c9f 100644
--- a/src/quick/items/qquickimagebase.cpp
+++ b/src/quick/items/qquickimagebase.cpp
@@ -230,7 +230,7 @@ void QQuickImageBase::load()
d->pix.connectFinished(this, thisRequestFinished);
d->pix.connectDownloadProgress(this, thisRequestProgress);
-
+ update(); //pixmap may have invalidated texture, updatePaintNode needs to be called before the next repaint
} else {
requestFinished();
}