From: Mikko Rasa Date: Thu, 1 Aug 2024 14:48:32 +0000 (+0300) Subject: Don't generate mipmaps after loading metadata for managed textures X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=7f9fb45ea9e3801f1bba7f885a6bde44226aecae;p=libs%2Fgl.git Don't generate mipmaps after loading metadata for managed textures It will be done when the resource manager loads the pixel data. --- diff --git a/source/core/texture.cpp b/source/core/texture.cpp index d6e2f2bd..32ef3cef 100644 --- a/source/core/texture.cpp +++ b/source/core/texture.cpp @@ -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(); }