From e4cc0e04e82dab0e44917922db1122c8a1bcdc9e Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 26 Nov 2022 17:55:31 +0000 Subject: [PATCH] GS-DX11: Fix D3D11_BOX parameters (missing "front") --- pcsx2/GS/Renderers/DX11/GSTexture11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/DX11/GSTexture11.cpp b/pcsx2/GS/Renderers/DX11/GSTexture11.cpp index aa59e7b171..99ba516f38 100644 --- a/pcsx2/GS/Renderers/DX11/GSTexture11.cpp +++ b/pcsx2/GS/Renderers/DX11/GSTexture11.cpp @@ -46,7 +46,8 @@ bool GSTexture11::Update(const GSVector4i& r, const void* data, int pitch, int l g_perfmon.Put(GSPerfMon::TextureUploads, 1); const u32 bs = GetCompressedBlockSize(); - const D3D11_BOX box = {Common::AlignDownPow2((u32)r.left, bs), Common::AlignDownPow2((u32)r.top, bs), + + const D3D11_BOX box = {Common::AlignDownPow2((u32)r.left, bs), Common::AlignDownPow2((u32)r.top, bs), 0U, Common::AlignUpPow2((u32)r.right, bs), Common::AlignUpPow2((u32)r.bottom, bs), 1U}; const UINT subresource = layer; // MipSlice + (ArraySlice * MipLevels).