mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:17:02 +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);
|
fclose (file);
|
||||||
|
|
||||||
//then create a new texture out of the ktx
|
//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) {
|
if (theNewTexure) {
|
||||||
returnedTexture = theNewTexure;
|
returnedTexture = theNewTexure;
|
||||||
|
|
Loading…
Reference in a new issue