mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:30:39 +02:00
Logging cleanup
This commit is contained in:
parent
b98cd7355e
commit
d6ab35ba1a
1 changed files with 3 additions and 3 deletions
|
@ -163,8 +163,8 @@ gpu::TexturePointer processImage(const QByteArray& content, const std::string& f
|
||||||
newImageReader.setDevice(&buffer);
|
newImageReader.setDevice(&buffer);
|
||||||
|
|
||||||
if (newImageReader.canRead()) {
|
if (newImageReader.canRead()) {
|
||||||
qWarning(imagelogging) << "Image file" << filename.c_str() << "has extension" << filenameExtension.c_str()
|
qCWarning(imagelogging) << "Image file" << filename.c_str() << "has extension" << filenameExtension.c_str()
|
||||||
<< "but is actually a" << qPrintable(newImageReader.format()) << "(recovering)";
|
<< "but is actually a" << qPrintable(newImageReader.format()) << "(recovering)";
|
||||||
image = newImageReader.read();
|
image = newImageReader.read();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ struct MyOutputHandler : public nvtt::OutputHandler {
|
||||||
};
|
};
|
||||||
struct MyErrorHandler : public nvtt::ErrorHandler {
|
struct MyErrorHandler : public nvtt::ErrorHandler {
|
||||||
virtual void error(nvtt::Error e) override {
|
virtual void error(nvtt::Error e) override {
|
||||||
qDebug() << "Texture compression error:" << nvtt::errorString(e);
|
qCWarning(imagelogging) << "Texture compression error:" << nvtt::errorString(e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue