d3d11screencapturesrc: Fix mouse cursor blending
authorSeungha Yang <seungha@centricular.com>
Fri, 27 Oct 2023 16:23:36 +0000 (01:23 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 30 Oct 2023 14:03:49 +0000 (14:03 +0000)
commit7171849c3e0322913a616469f2cdae618375aa90
tree80611a239661c0ea27ee7f26379d1e74236d9401
parent96326904f9d0df27b2b53fd6696356583d72f3be
d3d11screencapturesrc: Fix mouse cursor blending

Ignore alpha component of source (mouse cursor texture)
when blending alpha channel, otherwise the background area of source
(which has zeros) will be written to render target. Then it will result
in black rectangle if output texture is converted to premultiplied alpha
texture

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5577>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp