1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-01 19:29:16 +01:00

[d3d9] Set color space for swap chain image

This commit is contained in:
Philip Rebohle 2025-01-13 00:16:40 +01:00 committed by Philip Rebohle
parent b586294e29
commit 1d790970d5

@ -866,6 +866,14 @@ namespace dxvk {
cHud = m_hud,
cFrameId = m_wctx->frameId
] (DxvkContext* ctx) {
// Update back buffer color space as necessary
if (cSrcView->image()->info().colorSpace != cColorSpace) {
DxvkImageUsageInfo usage = { };
usage.colorSpace = cColorSpace;
ctx->ensureImageCompatibility(cSrcView->image(), usage);
}
// Blit back buffer onto Vulkan swap chain
auto contextObjects = ctx->beginExternalRendering();