mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
Merge pull request #2405 from ey6es/master
Let's actually use the result of our format conversion.
This commit is contained in:
commit
335fed0453
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ void ImageReader::run() {
|
||||||
int imageArea = image.width() * image.height();
|
int imageArea = image.width() * image.height();
|
||||||
if (opaquePixels == imageArea) {
|
if (opaquePixels == imageArea) {
|
||||||
qDebug() << "Image with alpha channel is completely opaque:" << url;
|
qDebug() << "Image with alpha channel is completely opaque:" << url;
|
||||||
image.convertToFormat(QImage::Format_RGB888);
|
image = image.convertToFormat(QImage::Format_RGB888);
|
||||||
}
|
}
|
||||||
QMetaObject::invokeMethod(texture.data(), "setImage", Q_ARG(const QImage&, image),
|
QMetaObject::invokeMethod(texture.data(), "setImage", Q_ARG(const QImage&, image),
|
||||||
Q_ARG(bool, translucentPixels >= imageArea / 2));
|
Q_ARG(bool, translucentPixels >= imageArea / 2));
|
||||||
|
|
Loading…
Reference in a new issue