d3d11memory: Fix GstAllocator::mem_copy() implementation
authorSeungha Yang <seungha@centricular.com>
Mon, 29 Aug 2022 20:02:31 +0000 (05:02 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 30 Aug 2022 19:58:29 +0000 (19:58 +0000)
commit8b988605a890788038712fe48adc3ce4c2bda44b
tree5a60c424786a6f6741c3c56adbffbe9c1da28dd9
parent8648f5f7d278c639a41194b338f302c42834ab75
d3d11memory: Fix GstAllocator::mem_copy() implementation

We were checking possible bind flags for the DXGI format
of the source texture but that's never applied to
the destination texture desc.

Just use the already configured bind (and misc) flags of source texture
for the destination texture allocation without additional check.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2950>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp