diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index 027ad85ab5..756bcea5e0 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -63,6 +63,10 @@ std::vector PostProcessingShaderImplementation::GetAnaglyphShaderLi return {}; } +PostProcessingShaderConfiguration::PostProcessingShaderConfiguration() = default; + +PostProcessingShaderConfiguration::~PostProcessingShaderConfiguration() = default; + std::string PostProcessingShaderConfiguration::LoadShader(std::string shader) { // Load the shader from the configuration if there isn't one sent to us. diff --git a/Source/Core/VideoCommon/PostProcessing.h b/Source/Core/VideoCommon/PostProcessing.h index f453fff587..d114b26523 100644 --- a/Source/Core/VideoCommon/PostProcessing.h +++ b/Source/Core/VideoCommon/PostProcessing.h @@ -48,8 +48,9 @@ public: typedef std::map ConfigMap; - PostProcessingShaderConfiguration() : m_current_shader("") {} - virtual ~PostProcessingShaderConfiguration() {} + PostProcessingShaderConfiguration(); + virtual ~PostProcessingShaderConfiguration(); + // Loads the configuration with a shader // If the argument is "" the class will load the shader from the g_activeConfig option. // Returns the loaded shader source from file @@ -69,7 +70,7 @@ public: void SetOptionb(const std::string& option, bool value); private: - bool m_any_options_dirty; + bool m_any_options_dirty = false; std::string m_current_shader; ConfigMap m_options;