From c0e89bcead3a8ca6d06a2b34277bbb252eb8ec52 Mon Sep 17 00:00:00 2001 From: UMU618 Date: Thu, 22 Jan 2026 17:07:24 +0800 Subject: [PATCH] Fix color error on Windows --- src/d3d9/d3d9_swapchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 944f6821c23..f6c200cf485 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -1125,10 +1125,11 @@ namespace dxvk { case D3D9Format::A8R8G8B8: case D3D9Format::X8R8G8B8: + pDstFormats[n++] = { VK_FORMAT_B8G8R8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; + break; case D3D9Format::A8B8G8R8: case D3D9Format::X8B8G8R8: { pDstFormats[n++] = { VK_FORMAT_R8G8B8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; - pDstFormats[n++] = { VK_FORMAT_B8G8R8A8_UNORM, VK_COLOR_SPACE_SRGB_NONLINEAR_KHR }; } break; case D3D9Format::A2R10G10B10: