Skip to content

Commit

Permalink
Update switch statements to prevent build warnings (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
devloglogan authored Sep 20, 2024
1 parent cdedfcb commit 9349841
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ uint64_t OpenXRFbCompositionLayerSettingsExtensionWrapper::_set_viewport_composi
case SUPERSAMPLING_MODE_QUALITY: {
settings->layerFlags |= XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB;
} break;
case SUPERSAMPLING_MODE_DISABLED: {
// Do not enable any supersampling mode flags.
} break;
}

switch ((SharpeningMode)(int)p_property_values.get(SHARPENING_MODE_PROPERTY_NAME, SHARPENING_MODE_DISABLED)) {
Expand All @@ -129,6 +132,9 @@ uint64_t OpenXRFbCompositionLayerSettingsExtensionWrapper::_set_viewport_composi
case SHARPENING_MODE_QUALITY: {
settings->layerFlags |= XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB;
} break;
case SHARPENING_MODE_DISABLED: {
// Do not enable any sharpening mode flags.
} break;
}

if (settings->layerFlags == 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ void OpenXRFbPassthroughExtensionWrapper::start_passthrough_layer(LayerPurpose p
case LAYER_PURPOSE_PROJECTED:
xr_layer_purpose = XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB;
break;
default:
case LAYER_PURPOSE_NONE:
case LAYER_PURPOSE_MAX:
UtilityFunctions::print("Corresponding XrPassthroughLayerPurposeFB not found for LayerPurpose: ", p_layer_purpose);
return;
}
Expand Down

0 comments on commit 9349841

Please sign in to comment.