mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 15:57:39 +02:00
Merge pull request #4178 from huffman/fix-mesh-textures
Fix failing QMetaObject::invokeMethod call
This commit is contained in:
commit
2403533e0e
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ void ImageReader::run() {
|
|||
averageColor.setRgb(redTotal / imageArea, greenTotal / imageArea, blueTotal / imageArea);
|
||||
}
|
||||
QMetaObject::invokeMethod(texture.data(), "setImage", Q_ARG(const QImage&, image), Q_ARG(bool, false),
|
||||
Q_ARG(const QColor&, averageColor));
|
||||
Q_ARG(const QColor&, averageColor), Q_ARG(int, originalWidth), Q_ARG(int, originalHeight));
|
||||
return;
|
||||
}
|
||||
if (image.format() != QImage::Format_ARGB32) {
|
||||
|
|
Loading…
Reference in a new issue