mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 20:06:41 +01:00
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 = "");
|
std::string LoadShader(std::string shader = "");
|
||||||
void SaveOptionsConfiguration();
|
void SaveOptionsConfiguration();
|
||||||
void ReloadShader();
|
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; }
|
bool IsDirty() const { return m_any_options_dirty; }
|
||||||
void SetDirty(bool dirty) { m_any_options_dirty = dirty; }
|
void SetDirty(bool dirty) { m_any_options_dirty = dirty; }
|
||||||
bool HasOptions() const { return m_options.size() > 0; }
|
bool HasOptions() const { return m_options.size() > 0; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user