DirectXTex: Workaround to avoid ICE when building VS 2013 preview Debug ARM config

This commit is contained in:
walbourn_cp 2013-07-02 12:53:52 -07:00
parent 23acc173f0
commit 0aa54a8045

View File

@ -2334,7 +2334,8 @@ static HRESULT _Generate3DMipsTriangleFilter( _In_ size_t depth, _In_ size_t lev
}
else
{
sliceAcc->scanline.reset( reinterpret_cast<XMVECTOR*>( _aligned_malloc( sizeof(XMVECTOR) * nwidth * nheight, 16 ) ) );
size_t bytes = sizeof(XMVECTOR) * nwidth * nheight;
sliceAcc->scanline.reset( reinterpret_cast<XMVECTOR*>( _aligned_malloc( bytes, 16 ) ) );
if ( !sliceAcc->scanline )
return E_OUTOFMEMORY;
}