[vlc-commits] direct3d11: fix region sampler state leaking

Steve Lhomme git at videolan.org
Tue Jan 7 10:22:57 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan  7 10:04:11 2020 +0100| [32a0f5972f827553df48cdc6ebb1ca967d7b8322] | committer: Steve Lhomme

direct3d11: fix region sampler state leaking

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32a0f5972f827553df48cdc6ebb1ca967d7b8322
---

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 440dde3216..ce6dd960bd 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1228,13 +1228,13 @@ static void Direct3D11DestroyResources(vout_display_t *vd)
     D3D11_ReleaseQuad(&sys->picQuad);
     Direct3D11DeleteRegions(sys->d3dregion_count, sys->d3dregions);
     sys->d3dregion_count = 0;
+    D3D11_ReleaseQuad(&sys->regionQuad);
 
     ReleaseD3D11PictureSys(&sys->stagingSys);
 
     D3D11_ReleaseVertexShader(&sys->flatVShader);
     D3D11_ReleaseVertexShader(&sys->projectionVShader);
 
-    D3D11_ReleasePixelShader(&sys->regionQuad);
     if (sys->prepareWait)
     {
         ID3D11Query_Release(sys->prepareWait);



More information about the vlc-commits mailing list