cleaner unserialization

This commit is contained in:
samcake 2017-02-17 12:24:04 -08:00
parent 2d7ba45667
commit e6c6cd2825

View file

@ -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;