summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PostProcessing.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-21 11:54:53 -0400
committerLioncash <mathew1800@gmail.com>2018-05-21 11:54:56 -0400
commitf9c20571ab3b0be276e17593abbbd7fe6795daa9 (patch)
treef5c6142d36c128d8e6171dffd3eb245ad7a14cf6 /Source/Core/VideoCommon/PostProcessing.cpp
parent42a1545f8e306317d2725658c560d2ff02d740b8 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/PostProcessing.cpp')
-rw-r--r--Source/Core/VideoCommon/PostProcessing.cpp4
1 files changed, 4 insertions, 0 deletions
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<std::string> 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.