Allow texture console reloading GEGLTexture
This commit is contained in:
parent
c4cae7d622
commit
2ef63f997e
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user