hotfix: 4444 swizzle order

This commit is contained in:
squidbus 2025-02-06 17:55:46 -08:00
parent 1a00b1af24
commit 78ea536c95

View file

@ -325,10 +325,10 @@ inline CompMapping RemapSwizzle(const DataFormat format, const CompMapping swizz
case DataFormat::Format4_4_4_4: { case DataFormat::Format4_4_4_4: {
// Remap to a more supported component order. // Remap to a more supported component order.
CompMapping result; CompMapping result;
result.r = swizzle.a; result.r = swizzle.g;
result.g = swizzle.r; result.g = swizzle.b;
result.b = swizzle.g; result.b = swizzle.a;
result.a = swizzle.b; result.a = swizzle.r;
return result; return result;
} }
default: default: