fix texture upload depth
continuous-integration/drone/push Build is failing Details

d3d11
cosmonaut 2024-03-05 17:54:50 -08:00
parent 52d4c934f3
commit 838b5df27b
1 changed files with 2 additions and 2 deletions

View File

@ -2016,10 +2016,10 @@ static void D3D11_UploadToTexture(
D3D11_BOX dstBox; D3D11_BOX dstBox;
dstBox.left = textureRegion->x; dstBox.left = textureRegion->x;
dstBox.top = textureRegion->y; dstBox.top = textureRegion->y;
dstBox.front = textureRegion->d; dstBox.front = textureRegion->z;
dstBox.right = textureRegion->x + w; dstBox.right = textureRegion->x + w;
dstBox.bottom = textureRegion->y + h; dstBox.bottom = textureRegion->y + h;
dstBox.back = textureRegion->d + 1; dstBox.back = textureRegion->z + 1;
ID3D11DeviceContext1_UpdateSubresource1( ID3D11DeviceContext1_UpdateSubresource1(
d3d11CommandBuffer->context, d3d11CommandBuffer->context,