1
0
mirror of synced 2025-01-19 09:17:30 +01:00

Fix bc1 dx10 textures

This commit is contained in:
KillzXGaming 2019-03-29 23:38:25 -04:00 committed by GitHub
parent 3d63151626
commit 3fb31a0130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,11 @@ namespace FirstPlugin
switch (dds.DX10header.DXGI_Format)
{
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: