mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
d3d12: Fix crash with W16Z16Y16X16 texture format
This commit is contained in:
parent
2310ba137f
commit
09ccd7e436
1 changed files with 0 additions and 6 deletions
|
@ -366,12 +366,6 @@ ID3D12Resource *uploadSingleTexture(
|
||||||
{
|
{
|
||||||
unsigned short tmp = src[row * w * 4 + j];
|
unsigned short tmp = src[row * w * 4 + j];
|
||||||
dst[row * w * 4 + j] = (tmp >> 8) | (tmp << 8);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue