From ead543fae4d4506a159dda9f00d58528b222f7ad Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 11 Mar 2017 14:04:42 +0800 Subject: [PATCH] Avoid checking too many --- src/graphics/stk_tex_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/stk_tex_manager.cpp b/src/graphics/stk_tex_manager.cpp index 4e5e44d64..468a68c64 100644 --- a/src/graphics/stk_tex_manager.cpp +++ b/src/graphics/stk_tex_manager.cpp @@ -124,7 +124,6 @@ video::ITexture* STKTexManager::getTexture(const std::string& path, bool srgb, bool no_upload, bool single_channel, bool create_if_unfound) { - checkThreadedLoadTextures(false/*util_queue_empty*/); auto ret = m_all_textures.find(path); if (!no_upload && ret != m_all_textures.end()) return ret->second; @@ -162,6 +161,7 @@ video::ITexture* STKTexManager::getTexture(const std::string& path, bool srgb, if (new_texture->useThreadedLoading()) { addThreadedLoadTexture(new_texture); + checkThreadedLoadTextures(false/*util_queue_empty*/); } }