mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 08:37:19 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into fix_models_upload
This commit is contained in:
commit
c8d81e1ed6
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