mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
obs-filters: Fix blend state for Scale filter
Was incorrectly using straight alpha blend instead of premultiplied.
This commit is contained in:
parent
9e3dfa2409
commit
5fcffb066e
@ -297,10 +297,15 @@ static void scale_filter_render(void *data, gs_effect_t *effect)
|
||||
gs_effect_set_next_sampler(filter->image_param,
|
||||
filter->point_sampler);
|
||||
|
||||
gs_blend_state_push();
|
||||
gs_blend_function(GS_BLEND_ONE, GS_BLEND_INVSRCALPHA);
|
||||
|
||||
obs_source_process_filter_tech_end(filter->context, filter->effect,
|
||||
filter->cx_out, filter->cy_out,
|
||||
technique);
|
||||
|
||||
gs_blend_state_pop();
|
||||
|
||||
UNUSED_PARAMETER(effect);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user