Permalink
Browse files

PostProcessing: Make GetShader() return by constant reference

We don't need to create copies of the shader string when they can be
avoided.
  • Loading branch information...
lioncash committed May 21, 2018
1 parent 9d1b6cd commit c4d27cc8ec2222ec7ad650b212a2c3b005f51f0f
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/VideoCommon/PostProcessing.h
@@ -57,7 +57,7 @@ class PostProcessingShaderConfiguration
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; }

0 comments on commit c4d27cc

Please sign in to comment.