mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-28 16:12:08 -05:00
obs-transitions: Fix non-exhaustive switch statements
This commit is contained in:
@@ -343,8 +343,7 @@ get_tech_name_and_multiplier(enum gs_color_space current_space,
|
||||
switch (source_space) {
|
||||
case GS_CS_SRGB:
|
||||
case GS_CS_SRGB_16F:
|
||||
switch (current_space) {
|
||||
case GS_CS_709_SCRGB:
|
||||
if (current_space == GS_CS_709_SCRGB) {
|
||||
tech_name = "DrawMultiply";
|
||||
*multiplier = obs_get_video_sdr_white_level() / 80.0f;
|
||||
}
|
||||
@@ -358,6 +357,9 @@ get_tech_name_and_multiplier(enum gs_color_space current_space,
|
||||
case GS_CS_709_SCRGB:
|
||||
tech_name = "DrawMultiply";
|
||||
*multiplier = obs_get_video_sdr_white_level() / 80.0f;
|
||||
break;
|
||||
case GS_CS_709_EXTENDED:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case GS_CS_709_SCRGB:
|
||||
@@ -370,6 +372,9 @@ get_tech_name_and_multiplier(enum gs_color_space current_space,
|
||||
case GS_CS_709_EXTENDED:
|
||||
tech_name = "DrawMultiply";
|
||||
*multiplier = 80.0f / obs_get_video_sdr_white_level();
|
||||
break;
|
||||
case GS_CS_709_SCRGB:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user