mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
libobs: Don't force premultiplied alpha on filters
Many filters need to remultiply alpha on output.
This commit is contained in:
@@ -3762,9 +3762,6 @@ static void obs_source_process_filter_tech_end_internal(
|
||||
|
||||
const char *tech = tech_name ? tech_name : "Draw";
|
||||
|
||||
gs_blend_state_push();
|
||||
gs_blend_function(GS_BLEND_ONE, GS_BLEND_INVSRCALPHA);
|
||||
|
||||
if (can_bypass(target, parent, parent_flags, filter->allow_direct)) {
|
||||
render_filter_bypass(target, effect, tech);
|
||||
} else {
|
||||
@@ -3774,8 +3771,6 @@ static void obs_source_process_filter_tech_end_internal(
|
||||
}
|
||||
}
|
||||
|
||||
gs_blend_state_pop();
|
||||
|
||||
gs_set_linear_srgb(previous);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user