d3d11decoder: Fix copying decoder view to staging
authorSeungha Yang <seungha.yang@navercorp.com>
Thu, 13 Feb 2020 12:19:37 +0000 (21:19 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Thu, 13 Feb 2020 12:25:15 +0000 (21:25 +0900)
commit9bf4746e2f4c5ce51a5a9ef6469521bbb10d47b0
treefe28fd79d5673abd94dfa9f12ca9813020116cfb
parentf156ee1da4574410b5e4ee269bc361a56dc06038
d3d11decoder: Fix copying decoder view to staging

Source texture (decoder view) might be larger than destination (staging) texture.
In that case, D3D11_BOX structure should be passed to CopySubresourceRegion method
in order to specify the exact target area.
sys/d3d11/gstd3d11decoder.c