Allow texture console reloading GEGLTexture

This commit is contained in:
Benau 2021-04-17 13:16:27 +08:00
parent c4cae7d622
commit 2ef63f997e
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,8 @@ SPTextureManager::SPTextureManager()
((unsigned)std::thread::hardware_concurrency()),
m_gl_cmd_function_count(0)
{
if (!CVS->isGLSL())
return;
if (m_max_threaded_load_obj.load() == 0)
{
m_max_threaded_load_obj.store(2);

View File

@ -37,6 +37,7 @@
#include "graphics/sp/sp_shader.hpp"
#include "graphics/sp/sp_texture_manager.hpp"
#include "graphics/sp/sp_uniform_assigner.hpp"
#include "graphics/stk_tex_manager.hpp"
#include "guiengine/modaldialog.hpp"
#include "guiengine/screen_keyboard.hpp"
#include "guiengine/widgets/label_widget.hpp"
@ -1002,6 +1003,8 @@ bool handleContextMenuAction(s32 cmd_id)
sptm->dumpAllTextures();
return false;
}
if (t.empty())
STKTexManager::getInstance()->reloadAllTextures();
lw->setText(sptm->reloadTexture(t), true);
#endif
// Don't close the dialog after each run