1
0
mirror of synced 2024-11-30 18:24:39 +01:00

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
); );