summaryrefslogtreecommitdiffstats
path: root/src/graphicsitems/qximagebase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsitems/qximagebase.cpp')
-rw-r--r--src/graphicsitems/qximagebase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphicsitems/qximagebase.cpp b/src/graphicsitems/qximagebase.cpp
index e826f5c..416e242 100644
--- a/src/graphicsitems/qximagebase.cpp
+++ b/src/graphicsitems/qximagebase.cpp
@@ -194,6 +194,7 @@ void QxImageBase::requestFinished()
if (d->texture) {
delete d->texture;
+ d->texture = 0;
}
TextureManager *tm = QSGContext::current->textureManager();
@@ -222,8 +223,9 @@ void QxImageBase::textureStatusChanged(int status)
emit statusChanged(d->status);
}
- if (d->texture)
+ if (d->texture) {
pixmapChange();
+ }
}