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:
parent
e95ffd151d
commit
fb76f38a49
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user