diff options
Diffstat (limited to 'Graphics')
| -rw-r--r-- | Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp b/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp index 207d9020..ed1a48ff 100644 --- a/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp +++ b/Graphics/GraphicsTools/interface/ShaderMacroHelper.hpp @@ -73,6 +73,15 @@ public: AddShaderMacro<const Char*>(Name, ss.str().c_str()); } + ShaderMacroHelper() = default; + + // NB: string pointers in m_Macros may become invalid after the + // copy or move due to short string optimization in std::string + ShaderMacroHelper(const ShaderMacroHelper&) = delete; + ShaderMacroHelper(ShaderMacroHelper&&) = delete; + ShaderMacroHelper& operator=(const ShaderMacroHelper&) = delete; + ShaderMacroHelper& operator=(ShaderMacroHelper&&) = delete; + void Finalize() { if (!m_bIsFinalized) |
