mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
d3d11window: Set render target whenever drawing
Device context's render target might be updated for offscreen rendering
This commit is contained in:
parent
a687f06b59
commit
0778fa8043
1 changed files with 2 additions and 0 deletions
|
@ -1060,6 +1060,8 @@ _present_on_device_thread (GstD3D11Device * device, FramePresentData * data)
|
||||||
device_context = gst_d3d11_device_get_device_context_handle (device);
|
device_context = gst_d3d11_device_get_device_context_handle (device);
|
||||||
|
|
||||||
if (data->resource) {
|
if (data->resource) {
|
||||||
|
ID3D11DeviceContext_OMSetRenderTargets (device_context,
|
||||||
|
1, &self->rtv, NULL);
|
||||||
ID3D11DeviceContext_ClearRenderTargetView (device_context, self->rtv,
|
ID3D11DeviceContext_ClearRenderTargetView (device_context, self->rtv,
|
||||||
black);
|
black);
|
||||||
ID3D11DeviceContext_CopySubresourceRegion (device_context,
|
ID3D11DeviceContext_CopySubresourceRegion (device_context,
|
||||||
|
|
Loading…
Reference in a new issue