From d9ff9da0ac35935717ccc82851a6c0d939c2991d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 31 Jul 2020 16:39:17 -0400 Subject: [PATCH] avoid construct in fetchTransformedBilinear() Signed-off-by: Ivailo Monev --- src/gui/painting/qdrawhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index c3db9cacc..12b83c144 100644 --- a/src/gui/painting/qdrawhelper.cpp +++ b/src/gui/painting/qdrawhelper.cpp @@ -1426,7 +1426,7 @@ template /* blendType = Blend static const uint * QT_FASTCALL fetchTransformedBilinear(uint *buffer, const Operator *, const QSpanData *data, int y, int x, int length) { - FetchPixelProc fetch = (format != QImage::Format_Invalid) ? FetchPixelProc(qt_fetchPixel) : fetchPixelProc[data->texture.format]; + FetchPixelProc fetch = (format != QImage::Format_Invalid) ? fetchPixelProc[format] : fetchPixelProc[data->texture.format]; int image_width = data->texture.width; int image_height = data->texture.height;