зеркало из https://github.com/microsoft/DirectXTK.git
Fixed issue with Debug builds for Metro style apps
This commit is contained in:
Родитель
062a8f4de3
Коммит
807899c4ae
|
@ -1391,7 +1391,7 @@ HRESULT CreateDDSTextureFromFile( _In_ ID3D11Device* d3dDevice,
|
|||
if (texture != 0 && *texture != 0)
|
||||
{
|
||||
(*texture)->SetPrivateData( WKPDID_D3DDebugObjectName,
|
||||
lstrlenA(pstrName),
|
||||
strnlen_s(pstrName, MAX_PATH),
|
||||
pstrName
|
||||
);
|
||||
}
|
||||
|
@ -1399,7 +1399,7 @@ HRESULT CreateDDSTextureFromFile( _In_ ID3D11Device* d3dDevice,
|
|||
if (textureView != 0 && *textureView != 0 )
|
||||
{
|
||||
(*textureView)->SetPrivateData( WKPDID_D3DDebugObjectName,
|
||||
lstrlenA(pstrName),
|
||||
strnlen_s(pstrName, MAX_PATH),
|
||||
pstrName
|
||||
);
|
||||
}
|
||||
|
|
|
@ -669,7 +669,7 @@ HRESULT CreateWICTextureFromFile( _In_ ID3D11Device* d3dDevice,
|
|||
if (texture != 0 && *texture != 0)
|
||||
{
|
||||
(*texture)->SetPrivateData( WKPDID_D3DDebugObjectName,
|
||||
lstrlenA(pstrName),
|
||||
strnlen_s(pstrName, MAX_PATH),
|
||||
pstrName
|
||||
);
|
||||
}
|
||||
|
@ -677,7 +677,7 @@ HRESULT CreateWICTextureFromFile( _In_ ID3D11Device* d3dDevice,
|
|||
if (textureView != 0 && *textureView != 0 )
|
||||
{
|
||||
(*textureView)->SetPrivateData( WKPDID_D3DDebugObjectName,
|
||||
lstrlenA(pstrName),
|
||||
strnlen_s(pstrName, MAX_PATH),
|
||||
pstrName
|
||||
);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче