PostProcessing: Make GetShader() return by constant reference
We don't need to create copies of the shader string when they can be avoided.
This commit is contained in:
parent
9d1b6cdea4
commit
c4d27cc8ec
|
@ -57,7 +57,7 @@ public:
|
|||
std::string LoadShader(std::string shader = "");
|
||||
void SaveOptionsConfiguration();
|
||||
void ReloadShader();
|
||||
std::string GetShader() const { return m_current_shader; }
|
||||
const std::string& GetShader() const { return m_current_shader; }
|
||||
bool IsDirty() const { return m_any_options_dirty; }
|
||||
void SetDirty(bool dirty) { m_any_options_dirty = dirty; }
|
||||
bool HasOptions() const { return m_options.size() > 0; }
|
||||
|
|
Loading…
Reference in New Issue