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

Fixes matrix rain bloom reload bug. #34

Merged
merged 1 commit into from
May 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/filters/matrix-rain.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void matrix_rain_create(retro_effects_filter_data_t *filter)
obs_data_t *settings = obs_source_get_settings(filter->base->context);
matrix_rain_filter_defaults(settings);
obs_data_release(settings);
matrix_rain_load_effect(data);
data->reload_effect = true;
}

void matrix_rain_destroy(retro_effects_filter_data_t *filter)
Expand Down Expand Up @@ -113,9 +113,8 @@ void matrix_rain_filter_update(retro_effects_filter_data_t *data,
data->bloom_data->bloom_intensity =
(float)obs_data_get_double(settings, "matrix_bloom_intensity");

const float bloom_radius =
data->bloom_data->bloom_size =
(float)obs_data_get_double(settings, "matrix_bloom_radius");
set_gaussian_radius(bloom_radius, data->blur_data);

data->bloom_data->brightness_threshold =
(float)obs_data_get_double(settings, "matrix_bloom_threshold");
Expand Down
Loading