Skip to content

Commit

Permalink
DDSTextureLoader fix for 1D/2D texture and cubemap arrays when skippi…
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn_cp authored and walbourn_cp committed Apr 26, 2013
1 parent 0d481ae commit 2813dac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/DDSTextureLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,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)
{
Expand Down

0 comments on commit 2813dac

Please sign in to comment.