Keep bflim swizzle pattern on texture edit

This commit is contained in:
KillzXGaming 2019-08-25 20:55:20 -04:00
parent 71a7d06ad0
commit 374488c992
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -11,3 +11,4 @@ BrawlboxHelper/BrawlHelperTest2.cs
BrawlboxHelper/BrawlHelperTest2.zip BrawlboxHelper/BrawlHelperTest2.zip
Switch_Toolbox_StreamOverhaul.zip Switch_Toolbox_StreamOverhaul.zip
Toolbox/Lib.zip Toolbox/Lib.zip
yuzu-glsl-decompiler

View file

@ -530,6 +530,8 @@ namespace FirstPlugin
MipCount = 1; MipCount = 1;
var Gx2Format = FTEX.ConvertToGx2Format(Format); var Gx2Format = FTEX.ConvertToGx2Format(Format);
uint swizzle = (image.Swizzle >> 8) & 7;
try try
{ {
//Create image block from bitmap first //Create image block from bitmap first
@ -543,7 +545,7 @@ namespace FirstPlugin
(uint)image.Height, (uint)image.Height,
(uint)1, (uint)1,
(uint)Gx2Format, (uint)Gx2Format,
(uint)0, (uint)swizzle,
(uint)1, (uint)1,
(uint)MipCount (uint)MipCount
); );