Skip to content

Commit

Permalink
renderer: add safe params to PL_RENDER_DEFAULTS
Browse files Browse the repository at this point in the history
These params structs are always active, even if set to NULL, so there's
no reason not to initialize them to the appropriate defaults structs.
  • Loading branch information
haasn committed Aug 5, 2023
1 parent a2f6208 commit 0aa8abb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/libplacebo/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ struct pl_render_params {
/* set a frame mixer for pl_render_image_mix */ \
.frame_mixer = &pl_filter_oversample, \
.color_map_params = &pl_color_map_default_params, \
.color_adjustment = &pl_color_adjustment_neutral, \
.icc_params = &pl_icc_default_params, \
.lut_entries = 64, \
.tile_colors = {{0.93, 0.93, 0.93}, \
{0.87, 0.87, 0.87}}, \
Expand Down

0 comments on commit 0aa8abb

Please sign in to comment.