fix texture upload depth
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
52d4c934f3
commit
838b5df27b
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue