summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qgraphicssystem_runtime_p.h
diff options
context:
space:
mode:
authorJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-08-09 06:47:31 (GMT)
committerJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-08-09 11:18:31 (GMT)
commitd3ab1fccea2b1e011e7518269a29045a53f0a30b (patch)
treec943227221aa71748cb823b078cd29dbee67da4e /src/gui/painting/qgraphicssystem_runtime_p.h
parent54f87eae767f38d35829e8413ad99649c26b6324 (diff)
downloadQt-d3ab1fccea2b1e011e7518269a29045a53f0a30b.zip
Qt-d3ab1fccea2b1e011e7518269a29045a53f0a30b.tar.gz
Qt-d3ab1fccea2b1e011e7518269a29045a53f0a30b.tar.bz2
Pending surface might not get destroyed if no flush() happens
in between graphics system change. This patch ensures that all old surfaces are destroyed before new graphics system is activated. Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/painting/qgraphicssystem_runtime_p.h')
-rw-r--r--src/gui/painting/qgraphicssystem_runtime_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qgraphicssystem_runtime_p.h b/src/gui/painting/qgraphicssystem_runtime_p.h
index d4c9152..0232241 100644
--- a/src/gui/painting/qgraphicssystem_runtime_p.h
+++ b/src/gui/painting/qgraphicssystem_runtime_p.h
@@ -129,8 +129,8 @@ public:
virtual QPoint offset(const QWidget *widget) const;
- QWindowSurface *m_windowSurface;
- QWindowSurface *m_pendingWindowSurface;
+ QScopedPointer<QWindowSurface> m_windowSurface;
+ QScopedPointer<QWindowSurface> m_pendingWindowSurface;
private:
const QRuntimeGraphicsSystem *m_graphicsSystem;