mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-19 04:34:04 -04:00
libobs: Final downsample with SRGB formats
This commit is contained in:
1 parent
9e66a4d1ad
commit
71bd5860ce
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user