mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00: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];
|
||||
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…
Add table
Reference in a new issue