mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-14 00:47:37 +00:00
Fix bc1 dx10 textures
This commit is contained in:
parent
3d63151626
commit
3fb31a0130
1 changed files with 7 additions and 2 deletions
|
@ -101,7 +101,12 @@ namespace FirstPlugin
|
|||
|
||||
switch (dds.DX10header.DXGI_Format)
|
||||
{
|
||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_UNORM:
|
||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM:
|
||||
return SurfaceFormat.BC1_UNORM;
|
||||
|
||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC1_UNORM_SRGB:
|
||||
return SurfaceFormat.BC1_SRGB
|
||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_UNORM:
|
||||
return SurfaceFormat.BC4_UNORM;
|
||||
case DDS.DXGI_FORMAT.DXGI_FORMAT_BC4_SNORM:
|
||||
return SurfaceFormat.BC4_SNORM;
|
||||
|
@ -466,4 +471,4 @@ namespace FirstPlugin
|
|||
return rv;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue