Skip to content

Commit

Permalink
D3D9: Fix recent regression (crash)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 5, 2023
1 parent 73d3de7 commit 81d741a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/GPU/D3D9/thin3d_d3d9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ void D3D9Texture::SetImageData(int x, int y, int z, int width, int height, int d
break;
case DataFormat::A4R4G4B4_UNORM_PACK16:
case DataFormat::A1R5G5B5_UNORM_PACK16:
case DataFormat::R5G6B5_UNORM_PACK16:
// Native
if (data != rect.pBits)
memcpy(dest, source, width * sizeof(uint16_t));
Expand Down

0 comments on commit 81d741a

Please sign in to comment.