History

Let's actually use the result of our format conversion.

Andrzej Kapolka committed 12 years ago

Commit 56ff4231 parent 0d432e11 file · +1 −1Browse files

Showing the changes to interface/src/renderer/TextureCache.cpp (1 of 1 file). Show all

Unified · Split

interface/src/renderer/TextureCache.cpp+1−1
@@ -313,7 +313,7 @@ void ImageReader::run() { · 312 unmodified lines
313313 int imageArea = image.width() * image.height();
314314 if (opaquePixels == imageArea) {
315315 qDebug() << "Image with alpha channel is completely opaque:" << url;
316− image.convertToFormat(QImage::Format_RGB888);
316+ image = image.convertToFormat(QImage::Format_RGB888);
317317 }
318318 QMetaObject::invokeMethod(texture.data(), "setImage", Q_ARG(const QImage&, image),
319319 Q_ARG(bool, translucentPixels >= imageArea / 2));