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,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;
}
}
}
}