File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2457,7 +2457,7 @@ static inline void obs_source_render_async_video(obs_source_t *source)
2457
2457
const char * tech_name = "Draw" ;
2458
2458
float multiplier = 1.0 ;
2459
2459
const enum gs_color_space current_space = gs_get_color_space ();
2460
- const bool linear_srgb = gs_get_linear_srgb ();
2460
+ bool linear_srgb = gs_get_linear_srgb ();
2461
2461
bool nonlinear_alpha = false;
2462
2462
switch (source_space ) {
2463
2463
case GS_CS_SRGB :
@@ -2492,6 +2492,7 @@ static inline void obs_source_render_async_video(obs_source_t *source)
2492
2492
case GS_CS_SRGB :
2493
2493
case GS_CS_SRGB_16F :
2494
2494
tech_name = "DrawTonemap" ;
2495
+ linear_srgb = true;
2495
2496
break ;
2496
2497
case GS_CS_709_SCRGB :
2497
2498
tech_name = "DrawMultiply" ;
@@ -2506,6 +2507,7 @@ static inline void obs_source_render_async_video(obs_source_t *source)
2506
2507
tech_name = "DrawMultiplyTonemap" ;
2507
2508
multiplier =
2508
2509
80.0f / obs_get_video_sdr_white_level ();
2510
+ linear_srgb = true;
2509
2511
break ;
2510
2512
case GS_CS_709_EXTENDED :
2511
2513
tech_name = "DrawMultiply" ;
You can’t perform that action at this time.
0 commit comments