1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-09 14:30:05 +00:00

Fixed DDSTextureLoader12 planar resource error

This commit is contained in:
Chuck Walbourn 2017-01-30 23:06:07 -08:00
parent b9bf00c0ea
commit df239abdd1

View File

@ -919,13 +919,14 @@ namespace
size_t NumBytes = 0;
size_t RowBytes = 0;
const uint8_t* pSrcBits = bitData;
const uint8_t* pEndBits = bitData + bitSize;
initData.clear();
for (size_t p = 0; p < numberOfPlanes; ++p)
{
const uint8_t* pSrcBits = bitData;
for (size_t j = 0; j < arraySize; j++)
{
size_t w = width;