[vlc-commits] direct3d11: use the right interface to release
Steve Lhomme
git at videolan.org
Tue Feb 13 11:38:31 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Feb 9 16:40:59 2018 +0100| [d4344d49eb1b61e5bac5625385aabd14c8116601] | committer: Hugo Beauzée-Luyssen
direct3d11: use the right interface to release
(cherry picked from commit 4fa9e48986d365a2f66de437e59a4c802fc3a539)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d4344d49eb1b61e5bac5625385aabd14c8116601
---
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 140c51e490..c1841156f5 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2158,7 +2158,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;
}
@@ -2189,7 +2189,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