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) else if (info.Format == GAL.Format.R4G4B4A4Unorm)
{ {
var tempR = swizzleR;
var tempG = swizzleG; var tempG = swizzleG;
var tempB = swizzleB;
swizzleR = swizzleA; swizzleB = swizzleA;
swizzleG = swizzleB; swizzleG = swizzleR;
swizzleB = tempG; swizzleR = tempG;
swizzleA = tempR; swizzleA = tempB;
} }
var componentMapping = new ComponentMapping(swizzleR, swizzleG, swizzleB, swizzleA); var componentMapping = new ComponentMapping(swizzleR, swizzleG, swizzleB, swizzleA);