Vulkan: fix RGBA8 backbuffer capture (#2575)

This commit is contained in:
pezcode 2021-08-09 22:42:00 +02:00 committed by GitHub
parent 59a73fe9d3
commit ae111f1946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3965,6 +3965,7 @@ VK_IMPORT_DEVICE
if (_swapChain.m_colorFormat == TextureFormat::RGBA8)
{
bimg::imageSwizzleBgra8(src, pitch, width, height, src, pitch);
_func(src, width, height, pitch, _userData);
}
else if (_swapChain.m_colorFormat == TextureFormat::BGRA8)
{