mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-12 07:36:14 +01:00
permissive- code cleanup
This commit is contained in:
@@ -367,7 +367,7 @@ namespace DirectX
|
||||
}
|
||||
}
|
||||
|
||||
LDRColorA LDRColorA::operator = (_In_ const HDRColorA& c)
|
||||
LDRColorA operator = (_In_ const HDRColorA& c)
|
||||
{
|
||||
LDRColorA ret;
|
||||
HDRColorA tmp(c);
|
||||
|
||||
@@ -574,7 +574,7 @@ namespace
|
||||
bool sRGB = IsSRGB(format);
|
||||
|
||||
value.vt = VT_LPSTR;
|
||||
value.pszVal = "DirectXTex";
|
||||
value.pszVal = const_cast<char*>("DirectXTex");
|
||||
|
||||
if (memcmp(&containerFormat, &GUID_ContainerFormatPng, sizeof(GUID)) == 0)
|
||||
{
|
||||
@@ -781,7 +781,7 @@ namespace
|
||||
{
|
||||
// Opt-in to the WIC2 support for writing 32-bit Windows BMP files with an alpha channel
|
||||
PROPBAG2 option = { 0 };
|
||||
option.pstrName = L"EnableV5Header32bppBGRA";
|
||||
option.pstrName = const_cast<wchar_t*>(L"EnableV5Header32bppBGRA");
|
||||
|
||||
VARIANT varValue;
|
||||
varValue.vt = VT_BOOL;
|
||||
|
||||
Reference in New Issue
Block a user