Fix bc1 dx10 textures
This commit is contained in:
parent
3d63151626
commit
3fb31a0130
@ -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…
x
Reference in New Issue
Block a user