libobs: Final downsample with SRGB formats

This commit is contained in:
jpark37 2019-09-10 20:06:17 -07:00
parent 9e66a4d1ad
commit 71bd5860ce

View file

@ -256,8 +256,9 @@ static inline gs_texture_t *render_output_texture(struct obs_core_video *video)
gs_effect_set_vec2(bres_i, &base_i);
}
gs_effect_set_texture(image, texture);
gs_effect_set_texture_srgb(image, texture);
gs_enable_framebuffer_srgb(true);
gs_enable_blending(false);
passes = gs_technique_begin(tech);
for (i = 0; i < passes; i++) {
@ -267,6 +268,7 @@ static inline gs_texture_t *render_output_texture(struct obs_core_video *video)
}
gs_technique_end(tech);
gs_enable_blending(true);
gs_enable_framebuffer_srgb(false);
profile_end(render_output_texture_name);