mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Fix fallthroughs in PickFormats
This commit is contained in:
parent
e9b0d5d716
commit
b2d96ee087
@ -1117,8 +1117,9 @@ namespace dxvk {
|
|||||||
|
|
||||||
switch (Format) {
|
switch (Format) {
|
||||||
default:
|
default:
|
||||||
Logger::warn(str::format("D3D9SwapChainEx: Unexpected format: ", Format));
|
Logger::warn(str::format("D3D9SwapChainEx: Unexpected format: ", Format));
|
||||||
|
[[fallthrough]];
|
||||||
|
|
||||||
case D3D9Format::A8R8G8B8:
|
case D3D9Format::A8R8G8B8:
|
||||||
case D3D9Format::X8R8G8B8:
|
case D3D9Format::X8R8G8B8:
|
||||||
case D3D9Format::A8B8G8R8:
|
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_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_R5G5B5A1_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR };
|
||||||
pDstFormats[n++] = { VK_FORMAT_A1R5G5B5_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: {
|
case D3D9Format::R5G6B5: {
|
||||||
pDstFormats[n++] = { VK_FORMAT_B5G6R5_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR };
|
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 };
|
pDstFormats[n++] = { VK_FORMAT_R5G6B5_UNORM_PACK16, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR };
|
||||||
}
|
} break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user