summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-04-15 09:49:30 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-04-24 06:43:54 (GMT)
commit3ab7dc5d764d41bf828dd76672ca2918b004bad3 (patch)
treecff56f4c9dd052c8623f69368b2cdc41526d1cb2 /src/gui/image/qpixmap.cpp
parent5423ba187c62ea861ccfcc013fb15fcc4a5ae28d (diff)
downloadQt-3ab7dc5d764d41bf828dd76672ca2918b004bad3.zip
Qt-3ab7dc5d764d41bf828dd76672ca2918b004bad3.tar.gz
Qt-3ab7dc5d764d41bf828dd76672ca2918b004bad3.tar.bz2
Remove the Direct3D engine.
Diffstat (limited to 'src/gui/image/qpixmap.cpp')
-rw-r--r--src/gui/image/qpixmap.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp
index 3b82da8..f495b31 100644
--- a/src/gui/image/qpixmap.cpp
+++ b/src/gui/image/qpixmap.cpp
@@ -1359,14 +1359,6 @@ bool QPixmap::isDetached() const
void QPixmap::deref()
{
if (data && !data->ref.deref()) { // Destroy image if last ref
-#if !defined(QT_NO_DIRECT3D) && defined(Q_WS_WIN)
- if (data->classId() == QPixmapData::RasterClass) {
- QRasterPixmapData *rData = static_cast<QRasterPixmapData*>(data);
- if (rData->texture)
- rData->texture->Release();
- rData->texture = 0;
- }
-#endif
if (data->is_cached && qt_pixmap_cleanup_hook_64)
qt_pixmap_cleanup_hook_64(cacheKey());
delete data;
@@ -1938,12 +1930,6 @@ void QPixmap::detach()
if (id == QPixmapData::RasterClass) {
QRasterPixmapData *rasterData = static_cast<QRasterPixmapData*>(data);
rasterData->image.detach();
-#if defined(Q_WS_WIN) && !defined(QT_NO_DIRECT3D)
- if (rasterData->texture) {
- rasterData->texture->Release();
- rasterData->texture = 0;
- }
-#endif
}
if (data->is_cached && qt_pixmap_cleanup_hook_64 && data->ref == 1)