From f9c20571ab3b0be276e17593abbbd7fe6795daa9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 21 May 2018 11:54:53 -0400 Subject: PostProcessing: Default constructor and destructor of PostProcessingShaderConfiguration Also ensure that all members of the class are initialized on construction as well. Previously the bool indicating if options are dirty wouldn't be initialized, which could be read uninitialized if an instance was constructed and then IsDirty() is called. --- Source/Core/VideoCommon/PostProcessing.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/VideoCommon/PostProcessing.cpp') 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. -- cgit v1.2.3