Gui: fix screenshot with opaque background

This commit is contained in:
Zheng, Lei
2020-01-11 15:20:24 +08:00
committed by wmayer
parent 20c85d9cc4
commit 7484738044
2 changed files with 5 additions and 1 deletions

View File

@@ -818,6 +818,9 @@ SoQtOffscreenRenderer::writeToImage (QImage& img) const
}
}
}
else if (PRIVATE(this)->backgroundcolor[3] == 1.0) {
img = img.convertToFormat(QImage::Format_RGB32);
}
}
/*!