[!] Fix dumping of some textures, something weird was happening with the D3DX method, wasnt saving some textures properly or was dumping them as they were been drawn not the actual texture itself.
[!] We need temp variables to make sure we only call some functions when the setting has actually changed