mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-06 00:30:03 +01:00
d3d12: Fix crash with W16Z16Y16X16 texture format
This commit is contained in:
parent
2310ba137f
commit
09ccd7e436
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue