[vlc-commits] direct3d11: use the right interface to release

Steve Lhomme git at videolan.org
Fri Feb 9 16:49:55 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb  9 16:40:59 2018 +0100| [4fa9e48986d365a2f66de437e59a4c802fc3a539] | committer: Steve Lhomme

direct3d11: use the right interface to release

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

 modules/video_output/win32/direct3d11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 2da65f44c9..653a61d86f 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2156,7 +2156,7 @@ static int Direct3D11CreateGenericResources(vout_display_t *vd)
                                         ID3D10Blob_GetBufferSize(pVSBlob), NULL, &sys->flatVSShader);
 
     if(FAILED(hr)) {
-      ID3D11Device_Release(pVSBlob);
+      ID3D10Blob_Release(pVSBlob);
       msg_Err(vd, "Failed to create the flat vertex shader. (hr=0x%lX)", hr);
       return VLC_EGENERIC;
     }
@@ -2187,7 +2187,7 @@ static int Direct3D11CreateGenericResources(vout_display_t *vd)
                                         ID3D10Blob_GetBufferSize(pVSBlob), NULL, &sys->projectionVSShader);
 
     if(FAILED(hr)) {
-      ID3D11Device_Release(pVSBlob);
+      ID3D10Blob_Release(pVSBlob);
       msg_Err(vd, "Failed to create the projection vertex shader. (hr=0x%lX)", hr);
       return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list