From 838b5df27b8a943dbd0f4998a4f74eb9a0e11a2d Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 5 Mar 2024 17:54:50 -0800 Subject: [PATCH] fix texture upload depth --- src/Refresh_Driver_D3D11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Refresh_Driver_D3D11.c b/src/Refresh_Driver_D3D11.c index ae15513..b0c60ae 100644 --- a/src/Refresh_Driver_D3D11.c +++ b/src/Refresh_Driver_D3D11.c @@ -2016,10 +2016,10 @@ static void D3D11_UploadToTexture( D3D11_BOX dstBox; dstBox.left = textureRegion->x; dstBox.top = textureRegion->y; - dstBox.front = textureRegion->d; + dstBox.front = textureRegion->z; dstBox.right = textureRegion->x + w; dstBox.bottom = textureRegion->y + h; - dstBox.back = textureRegion->d + 1; + dstBox.back = textureRegion->z + 1; ID3D11DeviceContext1_UpdateSubresource1( d3d11CommandBuffer->context,