diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 606bd192..d6e52dd6 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -1117,8 +1117,9 @@ namespace dxvk { switch (Format) { default: - Logger::warn(str::format("D3D9SwapChainEx: Unexpected format: ", Format)); - + Logger::warn(str::format("D3D9SwapChainEx: Unexpected format: ", Format)); + [[fallthrough]]; + case D3D9Format::A8R8G8B8: case D3D9Format::X8R8G8B8: case D3D9Format::A8B8G8R8: @@ -1138,12 +1139,12 @@ namespace dxvk { pDstFormats[n++] = { VK_FORMAT_B5G5R5A1_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; pDstFormats[n++] = { VK_FORMAT_R5G5B5A1_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; pDstFormats[n++] = { VK_FORMAT_A1R5G5B5_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; - } + } break; case D3D9Format::R5G6B5: { pDstFormats[n++] = { VK_FORMAT_B5G6R5_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; pDstFormats[n++] = { VK_FORMAT_R5G6B5_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; - } + } break; } return n;