permissive- code cleanup

This commit is contained in:
Chuck Walbourn
2017-01-10 14:51:52 -08:00
parent b47a7d13d9
commit 8fcd276eba
6 changed files with 27 additions and 27 deletions

View File

@@ -738,7 +738,7 @@ namespace
&bufferDesc,
D3D12_RESOURCE_STATE_COPY_DEST,
nullptr,
IID_PPV_ARGS(pStaging.GetAddressOf()));
IID_PPV_ARGS(pStaging.ReleaseAndGetAddressOf()));
if (FAILED(hr))
return hr;
@@ -1113,7 +1113,7 @@ HRESULT DirectX::SaveWICTextureToFile( ID3D12CommandQueue* pCommandQ,
{
// Opt-in to the WIC2 support for writing 32-bit Windows BMP files with an alpha channel
PROPBAG2 option = {};
option.pstrName = L"EnableV5Header32bppBGRA";
option.pstrName = const_cast<wchar_t*>(L"EnableV5Header32bppBGRA");
VARIANT varValue;
varValue.vt = VT_BOOL;
@@ -1190,7 +1190,7 @@ HRESULT DirectX::SaveWICTextureToFile( ID3D12CommandQueue* pCommandQ,
PropVariantInit( &value );
value.vt = VT_LPSTR;
value.pszVal = "DirectXTK";
value.pszVal = const_cast<char*>("DirectXTK");
if ( memcmp( &guidContainerFormat, &GUID_ContainerFormatPng, sizeof(GUID) ) == 0 )
{