mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 20:26:14 +01:00
Added WIC_LOADER_SRGB_DEFAULT flag to WICTextureLoader
This commit is contained in:
@@ -445,11 +445,19 @@ namespace
|
||||
{
|
||||
sRGB = (value.uintVal == 45455);
|
||||
}
|
||||
else
|
||||
{
|
||||
sRGB = (loadFlags & WIC_LOADER_SRGB_DEFAULT) != 0;
|
||||
}
|
||||
}
|
||||
else if (SUCCEEDED(metareader->GetMetadataByName(L"System.Image.ColorSpace", &value)) && value.vt == VT_UI2)
|
||||
{
|
||||
sRGB = (value.uiVal == 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
sRGB = (loadFlags & WIC_LOADER_SRGB_DEFAULT) != 0;
|
||||
}
|
||||
|
||||
(void)PropVariantClear(&value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user