Merge pull request #6748 from Cacodemon345/patch-776794

Vulkan: Always do RGB correction on Windows
This commit is contained in:
Miran Grča
2026-01-23 16:37:26 +01:00
committed by GitHub

View File

@@ -900,7 +900,7 @@ VulkanWindowRenderer::onBlit(int buf_idx, int x, int y, int w, int h)
strcat(path, fn);
QImage image = this->grab();
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) && !defined(Q_OS_WINDOWS)
image.save(path, "png");
#else
image.rgbSwapped().save(path, "png");