1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-12-27 11:50:13 +00:00

DDSTextureLoader fix for 1D/2D texture and cubemap arrays when skipping mips

This commit is contained in:
walbourn_cp 2013-04-26 15:15:47 -07:00
parent e95ffd151d
commit fb76f38a49

View File

@ -816,8 +816,11 @@ static HRESULT FillInitData( _In_ size_t width,
initData[index].SysMemSlicePitch = static_cast<UINT>( NumBytes );
++index;
}
else
else if ( !j )
{
// Count number of skipped mipmaps (first item only)
++skipMip;
}
if (pSrcBits + (NumBytes*d) > pEndBits)
{