From 7f9fb45ea9e3801f1bba7f885a6bde44226aecae Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 1 Aug 2024 17:48:32 +0300 Subject: [PATCH] Don't generate mipmaps after loading metadata for managed textures It will be done when the resource manager loads the pixel data. --- source/core/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.45.2