mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
Merge pull request #9834 from zzmp/ktx/use-stored-metadata
Use stored Usage(Type), Sampler for KTX
This commit is contained in:
commit
ae4ab3d86c
1 changed files with 1 additions and 4 deletions
|
@ -494,10 +494,7 @@ void FileReader::read() {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto ktx = resource.staticCast<NetworkTexture>()->_file->getKTX();
|
auto ktx = resource.staticCast<NetworkTexture>()->_file->getKTX();
|
||||||
gpu::Texture::Usage usage;
|
texture.reset(gpu::Texture::unserialize(ktx));
|
||||||
gpu::TextureUsageType usageType(gpu::TextureUsageType::RESOURCE);
|
|
||||||
gpu::Sampler sampler(gpu::Sampler::FILTER_MIN_MAG_MIP_LINEAR);
|
|
||||||
texture.reset(gpu::Texture::unserialize(ktx, usageType, usage, sampler.getDesc()));
|
|
||||||
texture->setKtxBacking(ktx);
|
texture->setKtxBacking(ktx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue