[vlc-commits] d3d11_shaders: fix bogus error returned when the shader compilation fails

Steve Lhomme git at videolan.org
Mon Aug 6 13:13:32 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Aug  6 13:10:23 2018 +0200| [c9a07c851c725daf5dcc02bfe2a030e654096c03] | committer: Steve Lhomme

d3d11_shaders: fix bogus error returned when the shader compilation fails

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

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

diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 70ff73c933..6295797fa4 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -706,7 +706,7 @@ static HRESULT D3D11_CompileVertexShader(vlc_object_t *obj, d3d11_handle_t *hd3d
                                          d3d11_device_t *d3d_dev, const char *psz_shader,
                                          d3d_vshader_t *output)
 {
-   HRESULT hr;
+   HRESULT hr = E_FAIL;
    ID3DBlob *pVSBlob = D3D11_CompileShader(obj, hd3d, d3d_dev, psz_shader, false);
    if (!pVSBlob)
        goto error;



More information about the vlc-commits mailing list