Don't store texture references after the view has gone away
authorGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 23 May 2011 10:45:12 +0000 (12:45 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 23 May 2011 11:45:15 +0000 (13:45 +0200)
commit2a720d2056b6f0b78b6d24928f7e2d9f8a38edb3
treeab73d5855b0b965cea1120a39b14fa457517ed04
parent9605fc786482bdd208cc3bfe92f318f7c314329c
Don't store texture references after the view has gone away

This is a partial fix only. We will eventually need to get
proper sharing of resources across multiple GL contexts, but this
fixes the autotest and will work for most usecases.

The task QTBUG-19455 has been created to solve it properly.
src/declarative/items/qsgborderimage.cpp
src/declarative/items/qsgcanvas.cpp
src/declarative/items/qsgimage.cpp
src/declarative/util/qdeclarativepixmapcache.cpp
src/declarative/util/qdeclarativepixmapcache_p.h
src/imports/particles/pictureaffector.cpp