mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-11 13:42:39 +00:00
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.
This commit is contained in:
parent
42a1545f8e
commit
f9c20571ab
2 changed files with 8 additions and 3 deletions
Source/Core/VideoCommon
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue