mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
obs-transitions: Fix non-exhaustive switch statements
This commit is contained in:
parent
3175e699ea
commit
bb2a99cec8
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user