From 81d741a5fe9cae487f97f7e819a6998e8fbd8c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 5 Dec 2023 13:41:04 +0100 Subject: [PATCH] D3D9: Fix recent regression (crash) --- Common/GPU/D3D9/thin3d_d3d9.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/GPU/D3D9/thin3d_d3d9.cpp b/Common/GPU/D3D9/thin3d_d3d9.cpp index dadf67eaadff..ff14902417e4 100644 --- a/Common/GPU/D3D9/thin3d_d3d9.cpp +++ b/Common/GPU/D3D9/thin3d_d3d9.cpp @@ -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));