summaryrefslogtreecommitdiffstats
path: root/src/graphicsitems/qximagebase.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-12-05 09:07:30 +0100
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-12-05 09:07:30 +0100
commit610139085223bf210740393cf72ba02340b38097 (patch)
tree688d4818447ba5a512ce445c089694925ff392ac /src/graphicsitems/qximagebase.cpp
parentba9d5b8be115adedae5d321ccb40fa84120512ab (diff)
Delay the ready signal a bit to give upload more time on Mac
Since we don't get a signal from GL that the texture is indeed uploaded, try assing a short wait for bigger images...
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();
+ }
}