From 5ed2d990af48ba3597fc25ce85cf8f5082df363a Mon Sep 17 00:00:00 2001 From: Philip Rebohle <philip.rebohle@tu-dortmund.de> Date: Thu, 16 Jan 2025 12:05:17 +0100 Subject: [PATCH] [d3d9] Fix software cursor texture format The new code expects texture reads to be in linear space, so we need to use an sRGB format here. --- src/d3d9/d3d9_swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 0c47db2a0..8771e4894 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -732,7 +732,7 @@ namespace dxvk { m_blitter->setCursorTexture( cursorSize, - VK_FORMAT_B8G8R8A8_UNORM, + VK_FORMAT_B8G8R8A8_SRGB, (void *) pCursorBitmap); }