diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-21 12:07:46 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-21 12:07:51 -0400 |
| commit | c4d27cc8ec2222ec7ad650b212a2c3b005f51f0f (patch) | |
| tree | 1d0277421d0728628bc67f566581566ae968c697 /Source/Core/VideoCommon/PostProcessing.h | |
| parent | 9d1b6cdea401b4afadda95e38b8e6e8c337a39f7 (diff) | |
PostProcessing: Make GetShader() return by constant reference
We don't need to create copies of the shader string when they can be
avoided.
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.h')
| -rw-r--r-- | Source/Core/VideoCommon/PostProcessing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PostProcessing.h b/Source/Core/VideoCommon/PostProcessing.h index fc60fb4676..e610b7fc38 100644 --- a/Source/Core/VideoCommon/PostProcessing.h +++ b/Source/Core/VideoCommon/PostProcessing.h @@ -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; } |
