[vlc-commits] direct3d11: clear the D3D11 view before writing on it
Steve Lhomme
git at videolan.org
Thu Aug 27 19:14:45 CEST 2015
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Fri Aug 14 10:06:59 2015 +0200| [b4b6a5b61d1a63b97f558146158a896129e109f6] | committer: 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 <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b4b6a5b61d1a63b97f558146158a896129e109f6
---
modules/video_output/msw/direct3d11.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 3acc4b6..889ed31 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -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);
More information about the vlc-commits
mailing list