From 11f14a0442883a2446116dc5c91c3e10ef339555 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Mon, 23 May 2016 09:55:13 +0200 Subject: Turn off optimization for checkForAlphaPixels on Windows ARM This function is optimized in a way that it returns bad results with the arm msvc compiler. Task-number: QTBUG-52007 Change-Id: Ica4517dfb7dde5a78d563f9253c4c907090c9459 Reviewed-by: Andreas Holzammer Reviewed-by: Kevin Funk Reviewed-by: Friedemann Kleint --- src/gui/image/qimage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui') diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index 29a688099b..59a83a6750 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -170,6 +170,9 @@ QImageData::~QImageData() data = 0; } +#if defined(_M_ARM) +#pragma optimize("", off) +#endif bool QImageData::checkForAlphaPixels() const { @@ -277,6 +280,9 @@ bool QImageData::checkForAlphaPixels() const return has_alpha_pixels; } +#if defined(_M_ARM) +#pragma optimize("", on) +#endif /*! \class QImage -- cgit v1.2.3