mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 20:22:34 +02:00
use QCryptographicHash static for cleaner hashing
This commit is contained in:
parent
683985aea9
commit
3aa6757c32
1 changed files with 2 additions and 3 deletions
|
@ -103,9 +103,8 @@ void TextureBaker::processTexture() {
|
|||
|
||||
// the baked textures need to have the source hash added for cache checks in Interface
|
||||
// so we add that to the processed texture before handling it off to be serialized
|
||||
QCryptographicHash hasher(QCryptographicHash::Md5);
|
||||
hasher.addData(_originalTexture);
|
||||
std::string hash = hasher.result().toHex().toStdString();
|
||||
auto hashData = QCryptographicHash::hash(_originalTexture, QCryptographicHash::Md5);
|
||||
std::string hash = hashData.toHex().toStdString();
|
||||
processedTexture->setSourceHash(hash);
|
||||
|
||||
auto memKTX = gpu::Texture::serialize(*processedTexture);
|
||||
|
|
Loading…
Reference in a new issue