Fix R4G4B4A4Unorm texture format permutation

This commit is contained in:
gdk 2021-12-12 00:46:21 -03:00 committed by riperiperi
parent 4c7e6df7d1
commit 0dc5a48e6f

View file

@ -76,13 +76,13 @@ namespace Ryujinx.Graphics.Vulkan
}
else if (info.Format == GAL.Format.R4G4B4A4Unorm)
{
var tempR = swizzleR;
var tempG = swizzleG;
var tempB = swizzleB;
swizzleR = swizzleA;
swizzleG = swizzleB;
swizzleB = tempG;
swizzleA = tempR;
swizzleB = swizzleA;
swizzleG = swizzleR;
swizzleR = tempG;
swizzleA = tempB;
}
var componentMapping = new ComponentMapping(swizzleR, swizzleG, swizzleB, swizzleA);