Commit b4b6a5b6 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: clear the D3D11 view before writing on it

In the windows store app the D3D11 view is reused between files
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 28124a8f
......@@ -809,6 +809,9 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
vout_display_sys_t *sys = vd->sys;
FLOAT blackRGBA[4] = {0.0f, 0.0f, 0.0f, 1.0f};
ID3D11DeviceContext_ClearRenderTargetView(sys->d3dcontext, sys->d3drenderTargetView, blackRGBA);
/* no ID3D11Device operations should come here */
ID3D11DeviceContext_OMSetRenderTargets(sys->d3dcontext, 1, &sys->d3drenderTargetView, sys->d3ddepthStencilView);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment