]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't generate mipmaps after loading metadata for managed textures
authorMikko Rasa <tdb@tdb.fi>
Thu, 1 Aug 2024 14:48:32 +0000 (17:48 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 1 Aug 2024 14:48:32 +0000 (17:48 +0300)
It will be done when the resource manager loads the pixel data.

source/core/texture.cpp

index d6e2f2bdc4605cfb526021f002210989807c3910..32ef3cef5b0ed5566903bc05444996e2c7acb8ff 100644 (file)
@@ -115,7 +115,7 @@ Texture::Loader::Loader(Texture &t, Collection *c):
 
 void Texture::Loader::finish()
 {
-       if(obj.auto_gen_mipmap)
+       if(!obj.manager && obj.auto_gen_mipmap)
                obj.generate_mipmap();
 }