mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
use stored Usage(Type), Sampler for KTX
This commit is contained in:
parent
9d56001341
commit
ffdaa09072
1 changed files with 1 additions and 4 deletions
|
@ -494,10 +494,7 @@ void FileReader::read() {
|
|||
}
|
||||
|
||||
auto ktx = resource.staticCast<NetworkTexture>()->_file->getKTX();
|
||||
gpu::Texture::Usage usage;
|
||||
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.reset(gpu::Texture::unserialize(ktx));
|
||||
texture->setKtxBacking(ktx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue