mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 18:42:11 +02:00
cleaner unserialization
This commit is contained in:
parent
2d7ba45667
commit
e6c6cd2825
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ gpu::Texture* cacheTexture(const std::string& name, gpu::Texture* srcTexture, bo
|
|||
fclose (file);
|
||||
|
||||
//then create a new texture out of the ktx
|
||||
auto theNewTexure = Texture::unserialize(gpu::TextureUsageType::RESOURCE, ktx::KTX::create(storage));
|
||||
auto theNewTexure = Texture::unserialize(srcTexture->getUsageType(), ktx::KTX::create(storage));
|
||||
|
||||
if (theNewTexure) {
|
||||
returnedTexture = theNewTexure;
|
||||
|
|
Loading…
Reference in a new issue