aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/scenegraph/softwarecontext/pixmaptexture.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/scenegraph/softwarecontext/pixmaptexture.cpp b/src/plugins/scenegraph/softwarecontext/pixmaptexture.cpp
index d3dd747a9e..283a90ec5b 100644
--- a/src/plugins/scenegraph/softwarecontext/pixmaptexture.cpp
+++ b/src/plugins/scenegraph/softwarecontext/pixmaptexture.cpp
@@ -20,7 +20,9 @@
#include "pixmaptexture.h"
PixmapTexture::PixmapTexture(const QImage &image)
- : m_pixmap(QPixmap::fromImage(image))
+ // Prevent pixmap format conversion to reduce memory consumption
+ // and surprises in calling code. (See QTBUG-47328)
+ : m_pixmap(QPixmap::fromImage(image, Qt::NoFormatConversion))
{
}