mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
texconv: Portable Half Map uses .phm extension (#550)
This commit is contained in:
@@ -449,9 +449,9 @@ HRESULT __cdecl SaveToPortablePixMap(
|
||||
|
||||
|
||||
//============================================================================
|
||||
// PFM (Portable Float Map)
|
||||
// PFM (Portable Float Map) / PHM (Portable Half Map)
|
||||
// http://paulbourke.net/dataformats/pbmhdr/
|
||||
// https://oyranos.org/2015/03/portable-float-map-with-16-bit-half/index.html
|
||||
// https://github.com/syoyo/libphm
|
||||
//============================================================================
|
||||
|
||||
HRESULT __cdecl LoadFromPortablePixMapHDR(
|
||||
|
||||
@@ -2121,7 +2121,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if (_wcsicmp(ext.c_str(), L".pfm") == 0)
|
||||
else if (_wcsicmp(ext.c_str(), L".pfm") == 0 || _wcsicmp(ext.c_str(), L".phm") == 0)
|
||||
{
|
||||
hr = LoadFromPortablePixMapHDR(curpath.c_str(), &info, *image);
|
||||
if (FAILED(hr))
|
||||
|
||||
Reference in New Issue
Block a user