1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00

DDSTextureLoader: Minor code cleanup reported by Codeplex user

This commit is contained in:
walbourn_cp 2012-10-18 11:44:10 -07:00
parent cac1a2b2fa
commit 3f64170a59

View File

@ -1189,7 +1189,7 @@ static HRESULT CreateTextureFromDDS( _In_ ID3D11Device* d3dDevice,
}
// Create the texture
std::unique_ptr<D3D11_SUBRESOURCE_DATA> initData( new D3D11_SUBRESOURCE_DATA[ mipCount * arraySize ] );
std::unique_ptr<D3D11_SUBRESOURCE_DATA[]> initData( new D3D11_SUBRESOURCE_DATA[ mipCount * arraySize ] );
if ( !initData )
{
return E_OUTOFMEMORY;