d3d12: Fix crash with W16Z16Y16X16 texture format

This commit is contained in:
vlj 2015-06-16 15:48:04 +02:00 committed by Vincent Lejeune
parent 2310ba137f
commit 09ccd7e436

View file

@ -366,12 +366,6 @@ ID3D12Resource *uploadSingleTexture(
{
unsigned short tmp = src[row * w * 4 + j];
dst[row * w * 4 + j] = (tmp >> 8) | (tmp << 8);
tmp = src[row * w * 4 + j + 1];
dst[row * w * 4 + j + 1] = (tmp >> 8) | (tmp << 8);
tmp = src[row * w * 4 + j + 2];
dst[row * w * 4 + j + 2] = (tmp >> 8) | (tmp << 8);
tmp = src[row * w * 4 + j + 3];
dst[row * w * 4 + j + 3] = (tmp >> 8) | (tmp << 8);
}
break;
}