Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch broken configurations inside of the Post Processing shaders. #828

Conversation

Sonicadvance1
Copy link
Contributor

This catches most instances of configuration failures that can happen in a post processing shader.
Gives a user a helpful error message that lets them know what they have failed to set up correctly

case ConfigurationOption::OptionType::OPTION_INTEGER:
{
// Make sure our vectors are the same sizes
if (!(option.second.m_integer_values.size() == option.second.m_integer_min_values.size() &&

This comment was marked as off-topic.

This comment was marked as off-topic.

This catches most instances of configuration failures that can happen in a post processing shader.
Gives a user a helpful error message that lets them know what they have failed to set up correctly
@@ -47,11 +48,132 @@ std::string PostProcessingShaderConfiguration::LoadShader(std::string shader)
}

LoadOptions(code);

std::string error = VerifyOptions(m_options);
if (error.size())

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Aug 24, 2014

@Sonicadvance1: This comment grants you the permission to merge this pull request whenever you think it is ready. After addressing the remaining comments, click this link to merge.


Other than that, LGTM. @dolphin-emu-bot allowmerge

dolphin-emu-bot added a commit that referenced this pull request Aug 25, 2014
Catch broken configurations inside of the Post Processing shaders.
@dolphin-emu-bot dolphin-emu-bot merged commit 2f2f992 into dolphin-emu:master Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants