Showing the changes to interface/src/renderer/TextureCache.cpp (1 of 1 file). Show all
Unified · Split
| @@ -313,7 +313,7 @@ void ImageReader::run() { · 312 unmodified lines | ||
| 313 | 313 | int imageArea = image.width() * image.height(); |
| 314 | 314 | if (opaquePixels == imageArea) { |
| 315 | 315 | qDebug() << "Image with alpha channel is completely opaque:" << url; |
| 316 | − image.convertToFormat(QImage::Format_RGB888); | |
| 316 | + image = image.convertToFormat(QImage::Format_RGB888); | |
| 317 | 317 | } |
| 318 | 318 | QMetaObject::invokeMethod(texture.data(), "setImage", Q_ARG(const QImage&, image), |
| 319 | 319 | Q_ARG(bool, translucentPixels >= imageArea / 2)); |